Tag Archives: Process ‘command ‘ finished with nonzero exit value 1

[Solved] Android Studio Compile Error: Process ‘command ‘ finished with non-zero exit value 1

problem analysis

Errors occur when compiling. Generally, it is process’ command ‘C:\users…\appdata\local\Android\SDK\build tools\27.0.3\AAPT.Exe’ finished with non zero exit value 1

This is mostly a problem with the resource file. It is a newly imported project that has not been compiled before.

Solution:

In fact, it’s very simple. What we need is positioning
enter gradlew processdebugresources — debug in the termianl interface of as, and press enter to debug the resources, and the specific log will be printed if there is a problem.

gradlew processDebugResources –debug

After debugging, turn up and find the reason for the error