Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Self-Destructing Message Android App Adding Users Using Parse.com Creating an Account and App on Parse.com

I got this error when i try to use parse

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_75\bin\java.exe'' finished with non-zero exit value 2

3 Answers

Josh Gold
Josh Gold
12,207 Points

Had same problem... This was the solution that worked for me:

http://stackoverflow.com/questions/28917696/errorexecution-failed-for-task-appdexdebug-com-android-ide-common-process

For me I had multiple versions of the same library included in /app/libs. I was using Parse and I had both ParseFacebookUtilsV3-1.9.0.jar and ParseFacebookUtilsV4-1.9.0.jar.

Deleting the V3 jar solves the problem.

Harry James
Harry James
14,780 Points

Marking this as the Best Answer - it is the solution to the problem :)

For anyone who wants to solve this issue quickly, simply delete your ParseFacebookUtilsV3 jar file as Josh has said in his answer.

Hi Adisak please can you provide you gradle file and your new call file? also the name and path of the directory you imported the parse class?

Thanks, Hubert

At the start please ensure that in your gradle file you will include all lines from parse,com in my case it was:

   compile 'com.parse.bolts:bolts-android:1.+'

    //where src/main/libs is the path to the directory I created - libs in this case
   compile fileTree(dir: 'src/main/libs', include: 'Parse-*.jar')