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

1

Before I did not get this error, the error came out of a moment and it 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? Thanks

    
asked by Miguel Ortiz 24.03.2016 в 16:09
source

1 answer

2

Two options for this detail:

  

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

1) Make:

Clean project - > Rebuild Project

and restart, 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" within your build.gradle :

android {
............
dexOptions {
     ...
     ...
    javaMaxHeapSize "2g" 
}
    
answered by 24.03.2016 в 17:09