DEV Community


Posted on


Execution failed for task ':app:mergeDexDebug'

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'.

TahaTesser gives a hint:

You need to enable multidex

lordvidex provided a solution:
Go to android/app/build.gradle, add the following lines of codes:

dependencies {
  implementation '' //enter the latest version
android {
    defaultConfig {
        multiDexEnabled true
Enter fullscreen mode Exit fullscreen mode

Run again, succeed.

Hope this helps!
So proud to be a coder!

Top comments (2)

dk497 profile image
Dhananjai Kumar

Found helpful thank u very much

amyewalker profile image

that's really helpful,thank you so much

Thank you.

Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.