Neolanco / ARSvp-Flutter

A reimplementation of ARSvp in Flutter
0 stars 0 forks source link

Cannot compile for Android with url_launcher installed #1

Open Neolanco opened 1 month ago

Neolanco commented 1 month ago
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 commented 1 month ago

the same happens for shared_preferences