When I want to run my app, then I get Execution Failed - java

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Java\jdk1.7.0_17\bin\java.exe'' finished with non-zero exit value 1
My Android Studio is version 1.5.1
Can someone help me?

Related

Gradle build did not finished

I am getting these 2 errors while building my android project and I don't know what they mean.
Error#1:The number of method references in a .dex file cannot exceed 64K.
Error#2:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_91\bin\java.exe'' finished with non-zero exit value 2
You need to enable multi-dex support. Check this answer for more details and instructions how to enable it.

Ionic build android process exception error

,Hi to all, after running
cordova build --release android
i get this error:
* What went wrong:
Execution failed for task ':transformClassesWithMultidexlistForRelease'.
> com.android.build.api.transform.TransformException: 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 tried to find some fix in the internet but nothing works so i am open for any suggestions.
Thanks!
I have updated my jdk up to 1.8.0 and everything run smoothly :)

Error:Execution failed for task ':app:preDexDebug'.

I add SlidingMenu to my project(an empty project) and now I am getting an error when I try and run it. It builds fine but I get the error below when I run it:`Error:Execution failed for task ':app:preDexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_80\bin\java.exe'' finished with non-zero exit value 1`

Execution failed. App transform classes with dex for debug

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
> '/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/bin/java''
> finished with non-zero exit value 2
Try to clean your Gradle dependencies. if it doesn't work you can use "multiDexEnabled true" in Gradle.
There's a lot of info about this question ;)
EDIT:
link #1: http://frogermcs.github.io/MultiDex-solution-for-64k-limit-in-Dalvik/
link #2: com.android.build.transform.api.TransformException with android google play services

gcm end points for push notification to android device giving strange error

follwing this github project and instruction
here
I am trying to implement push notification to android device from google back end.
the backend part runs successfully in localhost but when I try to run the android project I get a strange error in build process every time.
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_60\bin\java.exe'' finished with non-zero exit value 2**

Categories

Resources