Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Execution failed for task ':app:buildInfo Debug Loader'

Tags:

I updated few days ago to Android Studio 2.0 and everything worked fine, but today when I tried to compile the project, I received the following error in the Logcat:

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

Exception while doing past iteration backup : Source \app\build\intermediates\builds\debug\184802777347678\classes.dex and destination \app\build\intermediates\builds\debug\184802777347678\classes.dex must be different

The error tells me that the same .dexmust be different, so I'm quite confused. How could I solve it?

like image 606
Alvaro Avatar asked Apr 15 '16 08:04

Alvaro


2 Answers

  1. Clean Your project.
  2. And try to rebuild it.

If you did it then enable mutidex in app base build.gradle file.

multiDexEnabled true 
like image 190
Ankita Shah Avatar answered Sep 18 '22 14:09

Ankita Shah


Just add below line in your app Gradle dependencies

compile 'com.android.support:multidex:1.0.0' 

and then below line in defaultConfig

multiDexEnabled true 
like image 42
Bajirao Shinde Avatar answered Sep 19 '22 14:09

Bajirao Shinde