Android Studio: Gradle - Build Fails -- Execution Failed for Task ':Dexdebug'

Error:Execution failed for task ':app:dexDebug'.

I have figured it out, actually the problem was caused by

compile 'com.firebase:firebase-client-android:2.5.2'

which i have removed since its an old library,
and I think is a duplicate of

compile 'com.google.firebase:firebase-database:9.4.0'

which is the new library since Firebase changed as per point 3 of this article

changed to this:

compile 'com.google.firebase:firebase-database:9.4.0'
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.firebaseui:firebase-ui:0.4.4'

Gradle error - Execution failed for task ':app:dexDebug'

MPAndroidChart already has com.nineoldandroids:library:2.4.+ as a dependency. Remove compile 'com.nineoldandroids:library:2.4.0' from your dependencies.

Android Studio Build fail - Execution failed for task ':app:dexDebug'

Add this to your build.gradle :

 configurations {
all*.exclude group: 'com.nineoldandroids'
}

Works fine for me ;)

Android Studio: Gradle - build fails -- Execution failed for task ':dexDebug'

The right answer is, that some of your jar files does not compile.
You should go into your build.gradle file in your project, and look in your dependencies.

If you're just importing some jar files, you could try to remove them and add them one at a time. This will help you determine which one of them causes the error.

In my case, I did just that, and when I was importing the last one, the app compiled. So I think the real problem was that I was importing too many at once. But now it all works.

Android: Execution failed for task :app:dexDebug

We had same problem on clean android sdk(android Studio bundle).

Try to run from command line from project root

./gradlew.bat clean assembleDebug

Please attach logs.

Also could be helpful run gradlew in verbose mode.

Android - Execution failed for task ':app:dexDebug'

Remove 'libs/android-support-v4.jar' from compile files(...). This file is a transitive dependency of appcompat-v7 library.



Related Topics



Leave a reply



Submit