Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Execution failed for task ':app:processDebugResources'

Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/mobi27/opt/AND-Studio/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1

like image 226
akshay Avatar asked Jun 11 '15 13:06

akshay


People also ask

What is AAPT error in Android Studio?

AAPT: Error: failed writing to '… \app\build\intermediates\runtim_symbol_list\debug\R. txt': … Error log. The cause of this issue is all about the combination of Android Gradle Plugin Version and Gradle Version.

What is Android resource linking failed?

The Android resource linking failed error can also occur if you have an error in any of your XML resources.


2 Answers

Check if you added a resource that violates the conventions. E.g. cannot have capital letters and such.

In my case I got the error as I had modified a drawable resource and Photoshop saved the image with capital filetype (file_name.PNG). Changing the filename to lower-case and rebuilding the project solved the problem.

like image 173
Paamand Avatar answered Oct 08 '22 03:10

Paamand


My solution is: Menu Build -> Clean Project.

I deleted and pasted a picture a while before. The picture has the same problem, so something wrong happened.

like image 26
spikeyang Avatar answered Oct 08 '22 02:10

spikeyang