Getting 'Unknown Kotlin JVM target: 21' if build the project with JDK 21
Closed this issue · 1 comments
Describe the bug
In new Android Studio(Ladybug | 2024.2.1 Patch 1 which released on Build #AI-242.23339.11.2421.12483815, built on October 11, 2024) default android gradle JDK version set to 21. When we add this plugin and try to run the app getting below error.
org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':capacitor-freerasp:compileDebugKotlin'.
Caused by: java.lang.IllegalArgumentException: Unknown Kotlin JVM target: 21
To Reproduce
- Add this plugin to ionic capacitor project.
- Update gradle JDK to 21
- Build the app.
Expected behavior
We should not get any kotlin compatable error with JDK 21
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information:
Build issue.
- Version of freeRASP:1.4.0, 1.5.2
Additional context
At least add below kotlin options in the plugin gradle.
kotlinOptions { jvmTarget = "17" }
Duplicate: talsec/Free-RASP-Capacitor#21