本文介绍了在发布模式下使用manifestmerger时出现的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新的Android SDK工具中,您可以从使用manifestmerger.enabled属性进行释放:

In the last Android SDK Tools, you can merge AndroidManifest from librairies using the manifestmerger.enabled property :

它很好用...但是只能在调试模式下使用!确实,当我使用右键单击projet">导出...">导出Android应用程序"在Eclipse中发布我的应用程序时,apk中包含的生成的AndroidManifest.xml不包含我库中的元素.任何的想法 ?我是否必须使用Ant脚本来发布我的应用程序并使合并功能正常工作?

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 ?

推荐答案

尝试使用最新的Android SDK和ADT插件.根据以下文章,您提到的问题已经解决:

Try using the latest Android SDK and ADT plugin. The problem you mentioned is already solved according to the following post:

android-使用新的"manifestmerger"属性

可以在这里找到它们

Android SDK (点击下载其他平台")

Android SDK(Click "DOWNLOAD FOR OTHER PLATFORMS")

ADT插件

这篇关于在发布模式下使用manifestmerger时出现的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 23:45
查看更多