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包冲突.删除起冲突的包就可以了
解决