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

后端 未结 6 1847
[愿得一人]
[愿得一人] 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:28

    If you are using AndroidX,

    Add below lines to app/build.gradle

    multiDexEnabled true // to the defaultConfig {}

    implementation 'androidx.multidex:multidex:2.0.1' // to the dependencies

    To the AndroidManifest.xml (Optional)

    Please note that you have to extends MainActivity to the MultiDexApplication. If you change android:name.

提交回复
热议问题