Error running application in AndroidStudio (aapt.exe " finished with non-zero exit value 1) [closed]

closed . this question needs details or clarification . He's not getting answers right now.

want to improve this question? Add details and clarify the problem by editing this post .

Closed 4 years ago .

Improve this question

Before I did not get this error, suddenly the error came out and does not let me run it on the cell phone to test it:

Com.android.IDE.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ' command 'C:\Users\Miguel\AppData\Local\Android\sdk\build-tools\23.0.2\aapt.exe " finished with non-zero exit value 1

What is the solution to this error ? Thank you

 1
Author: Angel Angel, 2016-03-24

1 answers

Two options for this detail:

\aapt.exe " finished with non-zero exit value 1

1) Perform:

Clean project -> Rebuild Project

And restart, with that may be enough but you will surely have the same problem recurrently, so Point Two would be appropriate.

2) the error finished with non- zero exit value 1, is regularly associated with memory problems, so you can add javaMaxHeapSize and define your "heap size" inside your build.gradle:

android {
............
dexOptions {
     ...
     ...
    javaMaxHeapSize "2g" 
}
 2
Author: Jorgesys, 2016-03-25 00:44:14