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

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

    When your app and the libraries it references exceed 65,536 methods, you encounter a build error that indicates your app has reached the limit of the Android build architecture: https://developer.android.com/studio/build/multidex

    add multiDexEnabled true in app/build.gradle defaultConfig at last.

    defaultConfig{ ... multiDexEnabled true }

提交回复
热议问题