Could not resolve all files for configuration ':file_picker:debugCompileClasspath

Fullter 打包发生错误

错误提示

Launching lib\main.dart on MI 6X in debug mode…
Initializing gradle…
Resolving dependencies…
Running Gradle task ‘assembleDebug’…

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ‘:file_picker:debugCompileClasspath’.

Failed to transform file ‘flutter.jar’ to match attributes {artifactType=processed-jar} using transform JetifyTransform
Failed to transform ‘D:\Android Studio\flutter.pub-cache\hosted\pub.flutter-io.cn\file_picker-1.4.3\android\Users\miguelruivo\devtools\flutter\bin\cache\artifacts\engine\android-arm64\flutter.jar’ using Jetifier. Reason: Cannot open a library at ‘FileMapping(from=D:\Android Studio\flutter.pub-cache\hosted\pub.flutter-io.cn\file_picker-1.4.3\android\Users\miguelruivo\devtools\flutter\bin\cache\artifacts\engine\android-arm64\flutter.jar, to=C:\Users\Administrator.gradle\caches\transforms-1\files-1.1\flutter.jar\9ecf7dcbee673f7f8985caa52f4fbed2\jetified-flutter.jar)’. (Run with --stacktrace for more details.) To disable Jetifier, set android.enableJetifier=false in your gradle.properties file.

  • 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 18s
Finished with error: Gradle task assembleDebug failed with exit code 1

图片: 在这里插入图片描述

网上找了好几个方法 都不行 ,自行查看错误之后发现
可能是jar包冲突.删除起冲突的包就可以了
在这里插入图片描述

解决
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值