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

Sandro Meschiari
Sandro Meschiari
18,418 Points

app: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
Sandro Meschiari
18,418 Points

so 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
Sandro Meschiari
18,418 Points

dependencies {

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
George Pirchalaishvili
3,747 Points

Try removing.

compile fileTree(dir: 'libs', include: 'Parse-*.jar')

George Pirchalaishvili
George Pirchalaishvili
3,747 Points

Well 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
Sandro Meschiari
18,418 Points

i 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
George Pirchalaishvili
3,747 Points

Unfortunately 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
Sandro Meschiari
18,418 Points

if i take that off it won't receive parse data

George Pirchalaishvili
George Pirchalaishvili
3,747 Points

Did you copy the .jar file from this library to libs folder? Maybe it will help

Sandro Meschiari
Sandro Meschiari
18,418 Points

I 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
Javier Alvarado
16,060 Points

I 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
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.