Execution Failed For Task ':app:processdebugresources' After Cleaning Project
Solution 1:
Keyword is Resources from
Execution failed for task ':app:processDebugResources'
Therefore, the problem likely exists somewhere in an XML file.
For instance, your manifest's application
tag. I don't think that name
attribute is valid. Plus, you already have android:name
for a different class. Therefore remove the name
one. Or change to android:name
and keep only one. If you need both classes, then have AppController extend the BootstrapApplication class.
<application
name="com.example.bliss_000.todolistapp.AppController"
Also, the entire package name isn't necessary.
For example, the MainActivity can simply be
<activity
android:name=".MainActivity"
Solution 2:
For me it was to update the compileSdkVersion
and targetSdkVersion
in build.gradle
from 27 to 28.
Solution 3:
90% possible your problem from xml files
Check following things in your xml
- Goto xml -> find (ctrl +f)-> search "@string/" -> check all strings are valid
- do samething for "@drawable/" & "@color/"
In my case I missed some drawables & colors and some strings not mapping
String not mapping issue
ex: "@string/password" "password" string available in my strings.xml but when I click (ctrl +click) not open in strings.xml
I hardcode the not mapped strings.. problem fixed
Solution 4:
This problem may caused from xml code content:
- Check
activity_main.xml
for all errors, - Fix all errors than rebuild by going to menu->build than click on 'Rebuild Project'
Solution 5:
I'll add on that to check EVERY.xml
file. This includes your AndroidManifest.xml
file. Most errors can also be subtle, too. For example, this piece of code was causing the error: android:fullBackupContent=""
. In case if you can't find the error, try using gradlew build --stacktrace
, as it gives a full stacktrace, allowing for you to trace the error.
Post a Comment for "Execution Failed For Task ':app:processdebugresources' After Cleaning Project"