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

Android build failed after upgrading to java 21 #634

Open
tiendo1011 opened this issue May 11, 2024 · 0 comments
Open

Android build failed after upgrading to java 21 #634

tiendo1011 opened this issue May 11, 2024 · 0 comments

Comments

@tiendo1011
Copy link

tiendo1011 commented May 11, 2024

Before that, we use java 17 and the android app is built just fine, after upgrading to java 21 we got this error:

Execution failed for task ':react-native-keychain:compileReleaseJavaWithJavac'.
> Could not resolve all files for configuration ':react-native-keychain: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: /opt/android/sdk/platforms/android-34/core-for-system-modules.jar.
         > Error while executing process /usr/lib/jvm/java-21-openjdk-amd64/bin/jlink with arguments {--module-path /home/circleci/.gradle/caches/transforms-3/2281fe0ee1022e5f93f894218c1f4eb0/transformed/output/temp/jmod --add-modules java.base --output /home/circleci/.gradle/caches/transforms-3/2281fe0ee1022e5f93f894218c1f4eb0/transformed/output/jdkImage --disable-plugin system-modules}

We're running this on CircleCI, with machine executor and image: "android:2024.04.1" image.
We're using react-native-keychain version 8.2.0
If you need any more info to debug this, please let me know

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