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 trialSandro Meschiari
18,418 Pointsapp:dexDebug
can anybody help with this error??? the app was fine until few second ago now this error comes up
Error:Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
anyideas??
11 Answers
Sandro Meschiari
18,418 Pointsso the problem is caused by the conflict generated by :
compile 'com.parse.bolts:bolts-android:1.+' and
compile 'com.android.support:appcompat-v7:+'
so if i remove bolts i have a run time exception cos it can't retrive object id from the store if i remove appcompact the won't run the app cos of the side bar activity
what do i do????!!?!?!?!?!?!??!
i am seriously freaking out!!!
Sandro Meschiari
18,418 Pointsdependencies {
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.android.support:appcompat-v7:+'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
}
it did not work those are my dependencies
George Pirchalaishvili
3,747 PointsTry removing.
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
George Pirchalaishvili
3,747 PointsWell I found this thing about that bolt: "what was actually causing the trouble is the bolts-android library. there were two DIFFERENT versions of it conflicting. the facebooksdk comes with bolts-android-1.1.2 and appcompatv7 comes with 1.1.4.
I unmarked Android Private Libraries container in the FacebookSDK library project, which contained bolts-android-1.1.2. As a result, my project now had only one version, 1.1.4"
Try going into Android Private Libraries and removing dublicate of bolts there.
Sandro Meschiari
18,418 Pointsi am doing this project into a mac which a friend borrowed cos my computer is getting fixed so i am not really practice of it can you please describe the path i need to follow. And thank you very much for helping me out
George Pirchalaishvili
3,747 PointsUnfortunately I do not have access to Android Studio at the moment, so I can not test it myself, but try using this:
compile ('com.android.support:appcompat-v7:+') { exclude module: 'bolts-android' }
If it doesnt work, I will try something when I am home :)
Sandro Meschiari
18,418 Pointsnope not working
Sandro Meschiari
18,418 Pointsif i take that off it won't receive parse data
George Pirchalaishvili
3,747 PointsDid you copy the .jar file from this library to libs folder? Maybe it will help
Sandro Meschiari
18,418 PointsI don't know how but i did it. Seems is all good for now takes data without crashing and without error!! thank you for your help.
Javier Alvarado
16,060 PointsI am having the same problem, although I'm getting the error with non-zero exit value 1 at the moment. Have you figured out what you did yet exactly? I've tried searching all day and haven't found anything that can solve this error.
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.