条目名称"AndroidManifest.xml"发生冲突(将android gradle插件更新为3.6.0后,构建失败) [英] Entry name 'AndroidManifest.xml' collided (Build failed after updating the android gradle plugin to 3.6.0)
问题描述
我最近将Android Studio从3.5(稳定)更新为3.6(稳定).
I have recently updated the Android Studio from 3.5(stable) to 3.6(stable).
然后我看到插件更新也可用,因此我已经更新了"com.android.tools.build:gradle"的版本.从3.5.0升级到3.6.0,并将gradle版本更新为5.6.4.
Then I saw the plugin update was also available, so I have updated the version of "com.android.tools.build:gradle" from 3.5.0 to 3.6.0 and also updated the gradle version to 5.6.4.
现在当我尝试构建项目时问题开始了;它失败,并显示消息条目名称'AndroidManifest.xml'冲突
Now the problem starts when I try to build the project; it fails with message Entry name 'AndroidManifest.xml' collided
推荐答案
这是由Android Gradle插件3.6引起的,可以通过在gradle.properties文件中包含以下内容来恢复使用旧的打包工具:
This is caused by Android Gradle plugin 3.6, revert to using the old packaging tool by including the following in your gradle.properties file will fix this:
android.useNewApkCreator=false
更多信息,请查看发行说明: https://developer.android.com/studio/releases/gradle-plugin#zipflinger
More info please check the release note: https://developer.android.com/studio/releases/gradle-plugin#zipflinger
这篇关于条目名称"AndroidManifest.xml"发生冲突(将android gradle插件更新为3.6.0后,构建失败)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!