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

Cannot compile for Android with url_launcher installed #1

Open
Neolanco opened this issue Oct 18, 2024 · 1 comment
Open

Cannot compile for Android with url_launcher installed #1

Neolanco opened this issue Oct 18, 2024 · 1 comment

Comments

@Neolanco
Copy link
Owner

Launching /home/leon/Projects/ARSvp-Flutter/lib/main.dart on Pixel 7a in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':url_launcher_android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':url_launcher_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/leon/.android/sdk/platforms/android-34/core-for-system-modules.jar.
         > Error while executing process /opt/android-studio/jbr/bin/jlink with arguments {--module-path /home/leon/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/transformed/output/temp/jmod --add-modules java.base --output /home/leon/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/transformed/output/jdkImage --disable-plugin system-modules}

* Try:
Launching /home/leon/Projects/ARSvp-Flutter/lib/main.dart on Pixel 7a in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':url_launcher_android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':url_launcher_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/leon/.android/sdk/platforms/android-34/core-for-system-modules.jar.
         > Error while executing process /opt/android-studio/jbr/bin/jlink with arguments {--module-path /home/leon/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/transformed/output/temp/jmod --add-modules java.base --output /home/leon/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/transformed/output/jdkImage --disable-plugin system-modules}

* Try:
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 3s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).
@Neolanco
Copy link
Owner Author

the same happens for shared_preferences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant