Skip to content Skip to sidebar Skip to footer

Error:execution Failed For Task ':app:packagealldebugclassesformultidex' In Android Studio

I am getting the following error when I run my application where creative sdk is integrated for photo editing option. Error:Execution failed for task ':app:packageAllDebugClassesFo

Solution 1:

Try to remove the explicit dependency on multidex library (remove the compile 'com.android.support:multidex:1.0.1' line from your dependencies in build.gradle).

The gradle plugin adds the correct version automagically when you're specifying multiDexEnabled=true.

Solution 2:

I removed this line from the dependencies and the multidex problem was solved for me.

compile fileTree(include: ['*.jar'], dir: 'libs')

Then it came to my attention that i already had a multidex jar file in my libs folder.I removed it and included back this line in dependencies and it worked.

Post a Comment for "Error:execution Failed For Task ':app:packagealldebugclassesformultidex' In Android Studio"