Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported class file major version 59 in Android Studio with ReactNative

i'm trying to reBuild and compile my Android Studio project, it worked good before installing the new version of react-native-jumio-mobilesdk for react native. After upgrading that library to 3.9.1, i had this error and i have not been able to fix it.

> Task :react-native-jumio-mobilesdk:compileDebugKotlin FAILED

Execution failed for task ':react-native-jumio-mobilesdk:compileDebugKotlin'.

Could not resolve all files for configuration ':react-native-jumio-mobilesdk:debugCompileClasspath'. Failed to transform bcprov-jdk15on-1.67.jar (org.bouncycastle:bcprov-jdk15on:1.67) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. > Execution failed for JetifyTransform: C:\Users\UsuarioDA1.gradle\caches\modules-2\files-2.1\org.bouncycastle\bcprov-jdk15on\1.67\8c0998045da87dbc2f1d4b6480458ed811ca7b82\bcprov-jdk15on-1.67.jar. > Failed to transform 'C:\Users\UsuarioDA1.gradle\caches\modules-2\files-2.1\org.bouncycastle\bcprov-jdk15on\1.67\8c0998045da87dbc2f1d4b6480458ed811ca7b82\bcprov-jdk15on-1.67.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 59. (Run with --stacktrace for more details.) Please file a bug at http://issuetracker.google.com/issues/new?component=460323.

I have one entire week trying to fix it but so far I have not been able.

I appreciate your help. :D

like image 951
MayenRosil Avatar asked Feb 19 '26 04:02

MayenRosil


1 Answers

For me the issue occured when I tried to update the firebase crashlytics gradle plugin to 2.7.1.

It was possible to fix it by setting android.jetifier.blacklist=bcprov-jdk15on in gradle.properties as mentioned here.

like image 55
justanotherdev Avatar answered Feb 21 '26 18:02

justanotherdev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!