Execution failed for task ':app:mergeDexDebug'
idawnwon
Posted on December 2, 2020
After added cloud_firestore: ^0.14.3+1
(I am not quite sure if it is the only reason), run on Android emulator, failed, it saids Execution failed for task ':app:mergeDexDebug'
.
You need to enable multidex
lordvidex provided a solution:
Go to android/app/build.gradle
, add the following lines of codes:
dependencies {
implementation 'com.android.support:multidex:1.0.3' //enter the latest version
}
android {
defaultConfig {
multiDexEnabled true
}
}
Run again, succeed.
Hope this helps!
So proud to be a coder!
💖 💪 🙅 🚩
idawnwon
Posted on December 2, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.