react-native-keychain
react-native-keychain copied to clipboard
Android build failed after upgrading to java 21
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