Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add Google fonts in android studio ladybug patch #626

Open
1 task done
tauseefrehman2 opened this issue Nov 6, 2024 · 2 comments
Open
1 task done

Unable to add Google fonts in android studio ladybug patch #626

tauseefrehman2 opened this issue Nov 6, 2024 · 2 comments
Labels
bug Something isn't working triage Issues that haven't been triaged

Comments

@tauseefrehman2
Copy link

Package

All packages

Existing issue?

What happened?

Expected vs actual result:

Steps to reproduce:

Relevant log output

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/tauseef/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar.
         > Error while executing process /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/jlink with arguments {--module-path /Users/tauseef/.gradle/caches/transforms-3/d9e926982c2c139ff9125eb7b6be4144/transformed/output/temp/jmod --add-modules java.base --output /Users/tauseef/.gradle/caches/transforms-3/d9e926982c2c139ff9125eb7b6be4144/transformed/output/jdkImage --disable-plugin system-modules}
@tauseefrehman2 tauseefrehman2 added bug Something isn't working triage Issues that haven't been triaged labels Nov 6, 2024
@arsabe75
Copy link

Same error.

Android Studio Ladybug | 2024.2.1 Patch 2
Build #AI-242.23339.11.2421.12550806, built on October 24, 2024
Linux 6.8.0-49-generic

Steps to reproduce:

1.- Create a new empty Flutter project.
2.- Run app in android emulator.
3.- Stop ejecution
4.- Add google_fonts to pubspec.yaml (google_fonts: ^6.2.1)
5.- Run project again. It is no necesary to add a font to the project
6.- I get the following error:

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: /home/arsabe75/Android/Sdk/platforms/android-34/core-for-system-modules.jar.
> Error while executing process /home/arsabe75/ASBKU/SOFT/android-studio/jbr/bin/jlink with arguments {--module-path /home/arsabe75/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/transformed/output/temp/jmod --add-modules java.base --output /home/arsabe75/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/transformed/output/jdkImage --disable-plugin system-modules}

@arsabe75
Copy link

I fixed this error following this: flutter/flutter#156304 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issues that haven't been triaged
Projects
None yet
Development

No branches or pull requests

2 participants