All of a sudden I cannot get Gradle to build any projects under Android Studio.
Error:Execution failed for task \':app:processDebugResources\'. com
In my case, I just used this 'android:drawableTop="2dp"'
with a TextView
. Obviously, it is an invalid reference.
It is a good way to revert to the last git version when met with this problem.
Add Below Library in gradle file .
compile "com.android.support:appcompat-v7:26.0.2"
compile "com.android.support:support-v13:26.0.2"
I also faced similar problem, got it fixed by disabling "Instant Run" option,
File>Settings>Build,Execution,Deployment>Instant Run Under Instant Run tab, disable "Enable Instant Run to hot swap code.."
In my case, i was wrongly mentioned dp as d in dimension file. That cause this issue, once i corrected that value everything working fine. So due to some new added wrong values or files may cause this issue.
It might be a bit too late to answer, but I didn't find a perfect answer, so here what worked for me:
I renamed couple of fields in attrs > declareStylable so they were pointing to non-existant enums and that's what caused a error for me.
You may miss the some resources.
You can find the exact problem using following steps
Click -> gradle (right side)
Goto app-> Tasks -> build -> assembleDebug
Double click assembleDebug
You will get the exact error. you can fix your problem