-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Studio Ladybug - Unknown Kotlin JVM target: 21 #16
Comments
You'll need to set your IDE to use Java 17. Capacitor 7 will support Java 21 but Capacitor 6 and plugins are designed to run with Java 17. |
I accidentally stumpled across this issue. I have the same problem since I use the image-to-text capacitor plugin. But it only appears if I try to build it via capacitor CLI on my windows pc and not when using Android Studio or on my build server. My error in console with capacitor CLI:
So @Andrea2099 you are not alone with this error and your temporary fix worked for me, too. |
Can't compile android, return this error Unknown Kotlin JVM target: 21
Add android and compile with LadyBug Android Studio
I fixed this issue in this way.
File:
[...]\node_modules@capacitor-community\image-to-text\android\build.gradle
BEFORE
AFTER
The text was updated successfully, but these errors were encountered: