android studio error when I upload an image - android

When I upload an image and try to run my app, I am getting this errors .
Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users**\AppData\Local\Android\sdk\build-tools\21.0.2\aapt.exe'' finished with non-zero exit value 42.
Error:Execution failed for task ':app:mergeDebugResources'.
C:\Users**\AndroidstudioProjects**\app\src\main\res\drawable\page2.png: Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users**\AppData\Local\Android\sdk\build-tools\21.0.2\aapt.exe'' finished with non-zero exit value 42
What I can do?
thanks

The answer is here:
Gradle finished with non-zero exit value 1 (ic_launcher.png: error: Duplicate file)

Related

finished with non-zero exit value 1 error occurs

This error occurs everytime i try to run any code in external device for debugging in android studio
Error:Execution failed for task
':app:transformClassesWithDexForDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
multiDexEnabled true
can help yours
or clean and rebuild project.

Aws android SDK

While integrating aws in android project ,I am getting below
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 3

Execution failed for task ':app:processDebugResouces' finished with non zero value

I am getting this following errors while compile my application.
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1
I did clean/build project but it not work and I checked the SDK as well , it's where it belongs to be. Can any one guide me from this issue.
In the gradle file I am using :
**compile 'com.android.support:support-v4:13.0.0'**
Any help is appreciated, thanks.
I have face this type of problem and i found solutions from this answers
finished with non zero exit value
how to fix 22.0.1\aapt.exe'' finished with non-zero exit value 1
Gradle finished with non-zero exit value 1 (ic_launcher.png: error: Duplicate file)
Android java.exe finished with non-zero exit value 1

Error: 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1

Error:Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
I am new to Android development.
I got above error when I tried to run sample code - http://examples.javacodegeeks.com/android/android-barcode-and-qr-scanner-example/
I cleaned and rebuild the project too, then the error goes away but when i try to run again (to run in emulator), then error reoccurs. Any suggestions?
Many thanks in advance.
I had the exact issue. I just upgraded the jdk version from jdk1.7.0_79 to jdk1.8.0_91 and then added to path. Then the Build and Launch was successful.

android: Execution failed for task error

when i try to build my android application or sync gradle i get this error : `Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android Development\sdk\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1`
i use last version of build tools
how can i slove this problem ?

Categories

Resources