1

I am attempting to recreate a running app I made in iOS for Android to release together I am attempting to integrate parse into the Android app and receive the following error:

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_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

could someone assist as to what this could mean and how can I go about fixing it?

I downloaded the latest parse SDK and placed in the dependencies in the build.gradle.

2
  • Hey, have you solved this problem? I get the same error, but can not find solution. Commented Feb 11, 2016 at 23:15
  • yes the solution below worked for me Commented Feb 12, 2016 at 20:19

1 Answer 1

3

First of all clean and rebuild your project and if the problem still persist, Try adding multiDexEnabled true to your app build.gradle file.

defaultConfig { multiDexEnabled true } 
Sign up to request clarification or add additional context in comments.

2 Comments

now I get the error: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: bolts/AppLink$Target.class
Try to compile with latest version of multidex. Add this into gradle depedencies it is compile 'com.android.support:multidex:1.0.1'

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.