Replies: 2 comments
-
From my experience, this error is likely related to Kotlin configuration. Sharing here my config that works: capacitor.build.gradle.txt If anyone see this comment and has suggestions, please share! |
Beta Was this translation helpful? Give feedback.
-
You have to use JDK 21 or newer for Capacitor 7 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I previously was using react native/expo, but have decided to pivot to Ionic/Capacitor for my project.
I CANNOT get it to compile and show in android. It seems like capacitor keeps forcing me to Java 21, but everything online is telling me to use 17. I am trying to launch on Android Studio (Narwhal) using the android emulator. My java_home is 17
I just want to get to the point that I can see a Hello World screen. Please help! Tell me what to look for to figure out why the versions aren't cooperating.
The biggest error I can't get past is:
Execution failed for task ':capacitor-android:compileDebugJavaWithJavac'.
> error: invalid source release: 21
Beta Was this translation helpful? Give feedback.
All reactions