flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

Application Crash Build after Importation of library

Open adebola opened this issue 1 year ago • 6 comments

🐛 Bug Report

I installed the package without even using the widget I got the following error

Expected behavior

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.

Could not resolve all files for configuration ':path_provider_android:androidJdkImage'. Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: /Users/adebola/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar. > Error while executing process /Users/adebola/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/jlink with arguments {--module-path /Users/adebola/.gradle/caches/transforms-3/d9e926982c2c139ff9125eb7b6be4144/transformed/output/temp/jmod --add-modules java.base --output /Users/adebola/.gradle/caches/transforms-3/d9e926982c2c139ff9125eb7b6be4144/transformed/output/jdkImage --disable-plugin system-modules}

  • 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 6s Error: Gradle task assembleDebug failed with exit code 1

Reproduction steps

import he package and build for Android

Configuration

Version: 1.x Flutter 3.24.3 and Dart 3.5.3 on M1 MacOS

Platform:

  • [ ] :iphone: iOS
  • [X ] :robot: Android

adebola avatar Nov 03 '24 10:11 adebola

我也是这种问题我以为就我呢哈哈,后来如何解决的

syx1314 avatar Nov 20 '24 06:11 syx1314

same problem

jeffersonmello avatar Nov 21 '24 21:11 jeffersonmello

I have the same problem

bardiaabasirad avatar Nov 22 '24 11:11 bardiaabasirad

I have so much problems after android studios is updated

jeffersonmello avatar Nov 22 '24 13:11 jeffersonmello

If you are using Android Studio Ladybug (2024.2.x), the issue may arise due to incompatible Java version bundled with the Ladybug (Java 20-21 instead of Java 17, which was used in the Koala version).

Solutions I found:

  • Downgrade to Android Studio Koala (2024.1.x). OR
  • Configure per-project or Change the Java SDK version, refer to: https://github.com/fluttercommunity/plus_plugins/issues/3303

kiettrantuan avatar Nov 23 '24 08:11 kiettrantuan

Unfortunately I did not solve it, I just downgraded the widget to Network Image Sent from my iPhoneOn 6 Nov 2024, at 15:42, MomenA7med @.***> wrote: @adebola Did you solve it ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

adebola avatar Nov 23 '24 09:11 adebola