talsec / Free-RASP-Community

SDK providing app protection and threat monitoring for mobile devices, available for Flutter, Cordova, Android and iOS.
https://talsec.app/freerasp-in-app-protection-security-talsec
MIT License
362 stars 13 forks source link

Getting 'Unknown Kotlin JVM target: 21' if build the project with JDK 21 #56

Closed rajurevoori closed 1 month ago

rajurevoori commented 1 month ago

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

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.

Additional context At least add below kotlin options in the plugin gradle. kotlinOptions { jvmTarget = "17" }

msikyna commented 1 month ago

Duplicate: https://github.com/talsec/Free-RASP-Capacitor/issues/21