You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
flutter pub get google_fonts
I place the fonts in google_fonts folder.
I add the font paths in pubspec.yml under the assets section:
assets:
- google_fonts/
Run app
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).
The text was updated successfully, but these errors were encountered:
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:
If I uninstall google_fonts and remove its usage from the code, everything works again
Relevant log output
The text was updated successfully, but these errors were encountered: