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 trialAdisak Chaiyakul
1,052 PointsI 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
12,207 PointsHad same problem... This was the solution that worked for me:
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.
hubertl
8,483 PointsHi 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
hubertl
8,483 PointsAt 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')
Harry James
14,780 PointsHarry James
14,780 PointsMarking 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.