Closed gorbypark closed 7 months ago
Turns out this is a known thing, https://github.com/expo/fyi/blob/main/expo-modules-gradle8-migration.md#error-task-current-target-is-17-and-compilereleasekotlin-task-current-target-is-11-jvm-target-compatibility-should-be-set-to-the-same-java-version
I created a PR that should fix the issue. https://github.com/EvanBacon/expo-quick-actions/pull/10
Fixed in 1.0.0
After upgrading a project from SDK49 to SDK50, as well as updating from Java 11 to Java 17 (as required by react-native 0.73), my project stopped building (
npx expo prebuild --clear; yarn android
) with an error about mismatched kotlinOptions JavaVersion in this package. I'm not an expert on the Android build system by any means, but I was able to open upnode_modules/expo-quick-actions/android/build.gradle
and set kotlinOptions tojvmTarget = JavaVersion.VERSION_17.majorVersion
and everything started working.I could create a PR for this easily, but I think this would probably break for anyone still using SDK49/Java11, so I'm unsure of how to handle that.
This was the error
Here's a patch-package I created if anyone comes across the same issue,
expo-quick-actions+0.2.8.patch