Image_Picker Flutter 构建失败(任务 ':app:transformClassesWithMultidexlistForDebug' 执行失败。)
Image_Picker Build Failed on Flutter (Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.)
我用了 image_picker(^0.6.0+2) 和 image_cropper(^1.0.1)
当 flutter 运行 构建失败时。
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* 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 32s
我用了很多东西来解决这个 problen.nothings 工作。之后,我删除了 image_picker 和 image_cropper,然后完美地应用了 运行ning。
IOS working fine, Android build Failed
已解决
- 在 VSCode 上打开项目并在 Android Studio 上打开 Android 模块并迁移到 AndroidX
我用了 image_picker(^0.6.0+2) 和 image_cropper(^1.0.1) 当 flutter 运行 构建失败时。
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* 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 32s
我用了很多东西来解决这个 problen.nothings 工作。之后,我删除了 image_picker 和 image_cropper,然后完美地应用了 运行ning。
IOS working fine, Android build Failed
已解决
- 在 VSCode 上打开项目并在 Android Studio 上打开 Android 模块并迁移到 AndroidX