RevenueCat / purchases-capacitor

Capacitor in-app purchases and subscriptions made easy.
MIT License
152 stars 14 forks source link

[Android] Error Unknown Kotlin JVM target: 21 when compiling #344

Open basvdijk opened 2 hours ago

basvdijk commented 2 hours ago

When building my Capacitor app with revenuecat/purchases-capacitor 9.0.4 I get:

Execution failed for task ':revenuecat-purchases-capacitor:compileDebugKotlin'.
> Error while evaluating property 'compilerOptions.jvmTarget' of task ':revenuecat-purchases-capacitor:compileDebugKotlin'.
   > Failed to calculate the value of property 'jvmTarget'.
      > Unknown Kotlin JVM target: 21
RCGitBot commented 2 hours ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

basvdijk commented 2 hours ago

Checked: https://github.com/RevenueCat/purchases-capacitor/issues/333

I've tried:

android-studio-2024.1.2.13-mac_arm
android-studio-2024.1.2.12-mac_arm
android-studio-2024.1.1.12-mac_arm
android-studio-2023.3.1.20-mac_arm

with

Still got the same error on MacOS 14.6.1 (23G93) Sonoma