Execution failed for task ':app:mergeDexDebug'. Firestore | Flutter

后端 未结 6 1851
[愿得一人]
[愿得一人] 2021-01-31 08:32

Trying to use Firestore in my project. My project is a brand new one, but having problems running the app on my device without getting an error: Execution failed for tas

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 09:05

    You can follow the guidelines mentioned here

    https://developer.android.com/studio/build/multidex

    or to cut the story short and directly go to answer

    Find android/app/build.gradle file and add the following lines of codes:

    dependencies {
      compile 'com.android.support:multidex:1.0.3' 
      //find latest version from here https://developer.android.com/studio/build/multidex
    }
    
    android {
        defaultConfig {
            multiDexEnabled true
        }
    }
    

提交回复
热议问题