[Solved] Android Studio Error: Error:Execution failed for task’:app:mergeDebugResources’

Error:

Error:Execution failed for task’:app:mergeDebugResources’

 

Reason:

The image I added does not meet the review requirements of Android Studio, add two lines of code to disable the review

 

Solution:

Add the following codes in build.gradle of the app directory.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
android {
.......
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
.......
}
android { ....... aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false ....... }
android {
.......
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
.......
}

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *