Issue when using manifestmerger in release mode

烂漫一生 提交于 2020-01-15 03:08:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!