Error running application in AndroidStudio (aapt.exe " finished with non-zero exit value 1) [closed]
want to improve this question? Add details and clarify the problem by editing this post .
Closed 4 years ago .
Improve this questionBefore 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 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"
}