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

mistake

Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed with multiple errors, see logs

The problem of merging errors is really frustrating. The following operations seem simple. In fact, it took me nearly two days to solve this problem. The general operation is to see if these three methods are useful. If not The code must be written wrong, check the code carefully! ! ! ! ! !

  • solution one

Add under application

tools:replace="Android:icon, android:theme"
  • Solution two

Add under Activity

android:exported="true"
  • Solution three

Add in gradle.properties

android.useAndroidX=true
android.enableJetifier=true
  • my problem is

When viewing the detailed print, it says that there are elements repeated

That is, I have an Activity that has not been replaced, and it will be OK if it is replaced.

Guess you like

Origin blog.csdn.net/weixin_56691212/article/details/129045327