问题
In the last Android SDK Tools, you can merge AndroidManifest from librairies using the manifestmerger.enabled property :
Build System Added automatic merging of library project manifest files into the including project's manifest. Enable this feature with the manifestmerger.enabled property.
It works great...but only in debug mode ! Indeed, when i release my app in Eclipse using 'right click on projet' > 'Export...' > 'Export Android Application', the generated AndroidManifest.xml contained in apk doesn't contain elements from my library. Any idea ? Do I have to use an Ant script to release my app and make the merging feature working ?
回答1:
Try using the latest Android SDK and ADT plugin. The problem you mentioned is already solved according to the following post:
android - using the new “manifestmerger” property
They could be found here:
Android SDK (Click "DOWNLOAD FOR OTHER PLATFORMS")
ADT Plugin
来源:https://stackoverflow.com/questions/11313062/issue-when-using-manifestmerger-in-release-mode