I know and completely aware of that I can create and integrate a library project in Android Studio with my main project.
My question is:
Can I convert a fully functional Android application with lots of layouts, XMLs and view into Android Library Project?
If the answer is yes (I've already tried, it seems feasible). But I am confused about the Android Manifest of the library project as it was a manifest of an application. I am getting error like
Error:(1046) Attribute "orientation" has already been defined Error:Execution failed for task ':processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/root/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
What changes should I make to successfully integrate this application as library with another application. I am sensing it should be the manifests, removing the drawables, something like this?
Or it is not possible? I have to recreate the library from scratch?
Edit
Following the suggested link give me the error
Error:Execution failed for task ':transformClassesAndResourcesWithSyncLibJarsForDebug'.
> error