Flutter Apprentice: 08-routes-and-navigation : shared_preferences

Hi -
I cannot figure out how to fix this in the latest version of Android Studio:

  • 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: /Users/ulrichsinn/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar.

Vanilla project is fine. Happens after adding shared_preferences.

Thank you for your help!

UJ.

If somebody else needs it, the answer is here:

Hello,
Thanks for this info. Your Texas Benefits Login
Best Regards

I’m using vscode, and when I opened the project from this chapter same issue, occured to me, how to resolve this?