Closed anudit closed 1 week ago
Hey I am not actually using android yet in my current projects so I haven't come across this.
@andrew-levy Has implemented the android side of this lib so maybe you have come across this in some of projects?
I'm getting the same error in Android. Do you guys think this it may be some sort of issue with React Native 0.74.x and JAVA 17?
"expo": "51.0.0",
"react-native": "0.74.2",
* What went wrong:
Execution failed for task ':expo-application:compileDebugKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (11).
Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation
My guess is that the instances of Java 11 need to be replaced with 17 in this file https://github.com/peterferguson/react-native-passkeys/blob/main/android/build.gradle
Are you able to make that change locally and try building again?
Hey @andrew-levy , I just gave it a go and did the changes locally. Seems like that did it, thanks a bunch!
Not sure if it's a good idea to create PR to address this?
@anudit
Sure PRs are welcome 👍
When I try and compile for Expo 51, I run into the following error
Repro