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

Execution failed for task: ':path_provider_android:' ... #637

Open
1 task done
jrosadob opened this issue Jan 6, 2025 · 1 comment
Open
1 task done

Execution failed for task: ':path_provider_android:' ... #637

jrosadob opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working triage Issues that haven't been triaged

Comments

@jrosadob
Copy link

jrosadob commented Jan 6, 2025

Package

google_fonts

Existing issue?

What happened?

Expected vs actual result:

I need the application to run and be able to use Google Fonts. Instead, the application throws an error when running on a physical Android device or emulator (I haven't tested on iOS), although it works fine on the web.

Steps to reproduce:

  1. flutter pub get google_fonts
  2. I place the fonts in google_fonts folder.
  3. I add the font paths in pubspec.yml under the assets section:
assets:
- google_fonts/
  1. Run app
  2. I have also tried with:
flutter pub clean
flutter pub get

If I uninstall google_fonts and remove its usage from the code, everything works again

Relevant log output

Launching lib\main.dart on moto g 9 plus in debug mode...

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: C:\Users\jrosadob\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
         > Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\jrosadob\.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\temp\jmod --add-modules java.base --output C:\Users\jrosadob\.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\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 30s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).
@jrosadob jrosadob added bug Something isn't working triage Issues that haven't been triaged labels Jan 6, 2025
@VimarsSpaceo
Copy link

I got the same iisue

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