I am thinking of creating a core application library (a library project with all the logic), a free version)and a full version that use this library.
As I understand some things in the manifest do not merge down like permissions and activities, does the version code merge? Could I put a single version code in the library to apply to both the free and paid versions?
The second question is, my current application (The one I will turn into an Android library) depends on a library, therefore if I make it a library, as I understand it, you cannot have a library inherit from a library. How do I get around this?
Inspect the merged manifest and find conflicts Even before you build your app, you can see a preview of what your merged manifest looks by opening your AndroidManifest. xml file in Android Studio, and then clicking the Merged Manifest tab at the bottom of the editor.
A MANIFEST file is an XML document that describes the manifest, or package contents, of a Windows software application. It is used by various Windows technologies for configuring and deploying software, including ClickOnce and the Common Language Runtime (CLR). MANIFEST files are often seen with the compound ".exe.
A manifest can contain only one application node. It uses attributes to specify the metadata for your application (including its title, icon, and theme).
The manifest file provides essential information about your app to the Android operating system, and Google Play store. The Android manifest file helps to declare the permissions that an app must have to access data from other apps.
AndroidManifest.xml merging is supported in version 20 of the ADT tools:
"Automatic merging of library project manifest files into the including project's manifest. Enable with the manifestmerger.enabled property."
http://tools.android.com/download/adt-20-preview
You will need version 20.0.3 or newer to get it to work within Eclipse.
Release notes for ADT 21 preview has this comment:
"Fixed manifest merger to properly adapt library classes in the merged manifest."
Not sure what this means but may be worth checking out if you are having merge issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With