老师,请问一下flutter build的时候,会提示The number of method references in a .dex file cannot exceed 64K。这个64k限制 https://developer.android.com/studio/build/multidex
该怎么办呀?
如果用官网的build教程 https://flutter.dev/docs/deployment/android
,minifiyEnabled和useProguard设置为True,还创建了proguard-rules.pro文件的方式的话,会提示需要升级到安卓X。The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
可是我配置升级了安卓X https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility
,我有的第三方包是不兼容安卓X的,只能降回来。
这个问题该怎么解决呀。老师
解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。
了解课程