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 .dex
must be different, so I'm quite confused. How could I solve it?
If you did it then enable mutidex in app base build.gradle file.
multiDexEnabled true
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With