Joe Rakhimov
Joe Rakhimov

Reputation: 5083

Android. Process 'command > '....aapt.exe'' finished with non-zero > exit value 1

Added 25 png files to drawable folder. When I try to run app, I am getting this error:

Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\ANDROID\sdk\build-tools\22.0.0\aapt.exe'' finished with non-zero exit value 1

R is shown as error:

Cannot resolve symbol R

I tried to Project->Clear Project, but no effect. But when delete those png files, everything working correctly. The problem is here, I need to use those png files in my application.

How to solve this problem?

PNG files

enter image description here

Upvotes: 6

Views: 10126

Answers (2)

Thirumalvalavan
Thirumalvalavan

Reputation: 2768

In our project, we got same issue. But We changed from JPG image to PNG image, than it is working perfectly.

Upvotes: 0

Joe Rakhimov
Joe Rakhimov

Reputation: 5083

In my case, all was because I have png file named: 'try.png'. Try to rename this file.

Upvotes: 1

Related Questions