精华 Flutter shared_preferences 提示 failed for task ':shared_preferences_android:compileDebugJavaWithJavac
Flutter集成shared_preferences 提示 failed for task ':shared_preferences_android:compileDebugJavaWithJavac
Could not resolve all files for configuration ‘:shared_preferences_android:androidJdkImage’.
详情如下:
flutter run
AILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared_preferences_android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':shared_preferences_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: C:\Users\55402\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
> Error while executing process C:\Program Files\Android\Android Studio1\jbr\bin\jlink.exe with arguments {--module-path C:\Users\55402\.gradle\caches\8.9\transforms\f79a96d989e471940ddc8a7dcb0bd809-c824c3f1-b179-4826-8ecc-1af52c400430\transformed\output\temp\jmod --add-modules java.base --output C:\Users\55402\.gradle\caches\8.9\transforms\f79a96d989e471940ddc8a7dcb0bd809-c824c3f1-b179-4826-8ecc-1af52c400430\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 1m 59s
Running Gradle task 'assembleDebug'... 120.1s
Error: Gradle task assembleDebug failed with exit code 1
1 回复