Android gradle build Error "finished with non-zero exit value 42" , what does it mean and how do i fix it? -
i trying run older project on think latest version of android studio. when attempt run or debug app 2 error messages. have google , found no viable solution.
error 1
error:error: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'e:\android studio\android\sdk\build-tools\21.1.2\aapt.exe'' finished non-zero exit value 42
error 2
error:execution failed task ':app:mergedebugresources'.
e:\tuts\developing android apps {am}\exercise files\ex_files_developandroidapp_esst\ex_files_developandroidapp_esst\exercise files\solutions\04_layouts\registrationsolution\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-mdpi\abc_btn_switch_to_on_mtrl_00012.9.png: error: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'e:\android studio\android\sdk\build-tools\21.1.2\aapt.exe'' finished non-zero exit value 42
what errors mean , how fix them?
i tried closing , opening , android studio think may somehow
android studio has problem sometimes.
you have check refactoring image format jpg, jpeg etc see works you.
it said due original image being of format problem occurs checked changing format of original image also.
no possible reason explained.
in case changing png jpg removed error.
Comments
Post a Comment