关于Execution failed for task‘:app:processDebugMainManifest‘.

错误

Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed with multiple errors, see logs

关于合并错误这个问题真的是很让人头大,下面的操作看起来简单,实际,这个问题我花了接近两天时间才解决;一般操作是看看这三种方法有没有用,没用的话一定是代码写错了,仔细检查代码!!!!!!

  • 解决方法一

在application下添加

tools:replace="Android:icon, android:theme"
  • 解决方法二

在Activity下添加

android:exported="true"
  • 解决方法三

在gradle.properties中添加

android.useAndroidX=true
android.enableJetifier=true
  • 我的问题出在

看详细打印时,说有元素重复

就是我有一个Activity没有更换,换掉就OK了

猜你喜欢

转载自blog.csdn.net/weixin_56691212/article/details/129045327