Android Studio: Error Code 1: Gradle: Execution failed for task ':app:processDebugResources'

前端 未结 5 2082
醉话见心
醉话见心 2021-01-01 21:08

I want to compile a project, I got Error:Gradle: Execution failed for task \':app:processDebugResources\'.

here is the exception:

5条回答
  •  悲哀的现实
    2021-01-01 21:52

    In case any one else has this problem and none of the mentioned answers solved your issue you can add this line to your AndroidManifest.xml file in the application tag:

    tools:replace="android:icon

    You also need the tool namespace in you manifest tag

    xmlns:tools="http://schemas.android.com/tools"

    So it would look like this:

    `
    
       
    

    I have the com.github.satyan:sugar:1.3 dependency as well, I believe that library is importing another icon in its own manifest, thus causing the conflict.

提交回复
热议问题