Android: aapt.exe exception - android

While sync my project am getting an aapt.exe exception. I Changed the build version i build.gradle but still I am getting the error
While cleaning the app am getting
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Binil\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1
Can any one please help me to solve this issue
Thanks in advance :)

Related

error "Process 'command './node_modules/expokit/detach-scripts/run-exp.sh'' finished with non-zero exit value 1" whie getting android apk file

I have a reactNative project with expokit tool. and now i want to get an apk output file from android studio. but i'm getting this error:
Process 'command './node_modules/expokit/detach-scripts/run-exp.sh'' finished with non-zero exit value 1
any help would be appreciated.
Run "exp publish" and try again. Hope this helps :)

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.

Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1

On running an Android Application on Android Studio gives me the following error:-
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
I have also added the multiDexEnabled true to my build.gradle file. But still it gives me the error.
I am not sure for what reason it shows me this error. I had also gone through the following links, But haven't got anything that could help me to solve my issue.
Process 'command usr/lib/jvm/java-8-oracle/bin/java' finished with non-zero exit value 2
Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException
Android with Gradle (Java finished with non-zero exit value 2)
Execution failed Process command /usr/lib/jvm/java-8-oracle/bin/java finished with non-zero exit value 2
Any help would save me my world. Thanks in advance.
This issue made me pull out lots of my hair.
In my case, it turns out I had incompatible Firebase library versions.
I would suggest running through your dependencies once more for good measure, and make sure libraries that should be the same version are, libraries that depend on a particular version have that version, and you have not redefined dependencies that already transitively come from another dependency you have added.
In my case going to File | Project structure... | Platform settings | SDKs and changing JDK home path to an alternative worked.

Getting processDebugResources error in Android Studio

I am getting an error when I try to compile the project in android studio like this,
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process 'command 'E:\adt-bundle-
windows-x86_64-20140702\sdk\build-tools\23.0.0_rc2\aapt.exe'' finished with
non-zero exit value 1
What is the reason for this? How to solve this?
Thanks.
Fixed the issue. There was a png image inside mipmap folders named default and renaming that name to a different name solved the issue.

Categories

Resources