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

Application Crash Build after Importation of library #985

Open
1 task
adebola opened this issue Nov 3, 2024 · 6 comments
Open
1 task

Application Crash Build after Importation of library #985

adebola opened this issue Nov 3, 2024 · 6 comments

Comments

@adebola
Copy link

adebola commented Nov 3, 2024

🐛 Bug Report

I installed the package without even using the widget I got the following error

Expected behavior

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: /Users/adebola/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar.
> Error while executing process /Users/adebola/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/jlink with arguments {--module-path /Users/adebola/.gradle/caches/transforms-3/d9e926982c2c139ff9125eb7b6be4144/transformed/output/temp/jmod --add-modules java.base --output /Users/adebola/.gradle/caches/transforms-3/d9e926982c2c139ff9125eb7b6be4144/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 6s
Error: Gradle task assembleDebug failed with exit code 1

Reproduction steps

import he package and build for Android

Configuration

Version: 1.x
Flutter 3.24.3 and Dart 3.5.3 on M1 MacOS

Platform:

  • 📱 iOS
  • [X ] 🤖 Android
@syx1314
Copy link

syx1314 commented Nov 20, 2024

我也是这种问题我以为就我呢哈哈,后来如何解决的

@jeffersonmello
Copy link

same problem

@bardiaabasirad
Copy link

I have the same problem

@jeffersonmello
Copy link

I have so much problems after android studios is updated

@kiettrantuan
Copy link

kiettrantuan commented Nov 23, 2024

If you are using Android Studio Ladybug (2024.2.x), the issue may arise due to incompatible Java version bundled with the Ladybug (Java 20-21 instead of Java 17, which was used in the Koala version).

Solutions I found:

@adebola
Copy link
Author

adebola commented Nov 23, 2024 via email

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

5 participants