当我使用Flutter插件时:Simple Permissions或Permission Handler,我得到一个错误。仅当我将这些插件与任何firebase plugins
失败:构建失败,并出现异常。
* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
Gradle task assembleDebug failed with exit code 1
注意:我已经将
multiDexEnabled true
添加到了build.gradle文件中