【发布时间】:2019-03-28 13:15:51
【问题描述】:
我正在使用 Flutter 构建我的应用程序。现在我总是收到这个错误:
FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug',> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: ...The number of method references in a .dex file cannot exceed 64K.Learn how to resolve this issue: https://developer.android.com/tools/building/multidex.html* 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 32s Finished with error: Gradle build failed: 1
所以这个错误清楚地表明我必须添加multidex-support。但是如何在 FLUTTER 中做到这一点呢?
【问题讨论】:
标签: error-handling flutter android-multidex