Android Process 'command>' .... aapt.exe '' exited with nonzero value> exit 1

Added 25 png files to the folder with the picture. When I try to run the application, I get this error:

Error: execution completed 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 a non-zero output value 1

R is displayed as an error:

Unable to resolve character R

I tried to execute Project-> Clear Project , but no effect. But when deleting these png files, everything works correctly. The problem is here, I need to use these png files in my application.

How to solve this problem?

PNG files

enter image description here

+6
source share
2 answers

In my case, everything was because I have a png file with the name: 'try.png'. Try renaming this file.

+1
source

In our project, we got the same problem. But we changed the jpg image to a png image , but it works fine.

0
source

Source: https://habr.com/ru/post/985564/


All Articles