简体   繁体   English

如何在android项目中合并两个清单文件

[英]How to merge two manifest files in an android project

I have a thirdparty library added in my android project. 我的android项目中添加了第三方库。 There are two activities defined in the manifest file of that library project. 该库项目的清单文件中定义了两个活动。 When I am running the app on the phone, it is crashing saying that activity not defined in the manifest file of my main project. 当我在手机上运行应用程序时,它崩溃说我的主项目的清单文件中没有定义活动。 Should I include the activities defined in the manifest file of the library into the manifest file of my project? 我应该将库的清单文件中定义的活动包含到项目的清单文件中吗?

Use 采用

manifestmerger.enabled=true inside the project.properties file project.propertid文件中的manifestmerger.enabled=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Unity Android构建-无法合并清单文件 - Unity android build - unable to merge manifest files Android清单合并不能合并三个清单文件 - android manifest merger cannot merge three manifest files Android Manifest 如何再次合并? - How has the Android Manifest to be to merge again? Android Manifest 如何再次合并? 2 - How has the Android Manifest to be to merge again? 2 Android Studio 两种具有不同清单文件的风格 - Android Studio two flavors with different manifest files CommandInvokationFailure:无法合并android清单。 有关更多详细信息,请参见控制台。 我已经在项目中的所有清单文件中进行了更改 - CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. I already made changes in all manifest files in project 如何在 Android Manifest 中声明两个不同的应用程序或将它们合并为一个应用程序类 - How to declare two different application in Android Manifest or merge them into one application class Android清单合并 - 来自库项目的不同启动器活动 - Android manifest merge - Different launcher activity from library project Android:我抓取我的项目时出现清单合并错误 - Android : Getting manifest merge error when I gradle my project 在Android中合并两个amr文件 - merge two amr files in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM