在我的应用中实现了firebase_ml_vision程序包后,出现此错误
* What went wrong:
Execution failed for task':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException:
com.android.builder.dexing.DexArchiveBuilderException:
com.android.builder.dexing.DexArchiveBuilderException: Failed to
process /Users/myname/.gradle/caches/transforms-1/files-1.1/firebase-
analytics-impl-11.4.2.aar/188cea0bae6e6aeb55c7647205f3175d/jars/classes.jar
我尝试了一些修复方法(例如,将multiDexEnabled设置为true)
我的Pubspec.yaml
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
scoped_model: "^0.3.0"
image_picker: ^0.5.0+6
firebase_ml_vision: ^0.6.0+2