adjorno opened a new issue, #1661: URL: https://github.com/apache/cordova-android/issues/1661
# Feature Request Support latest build tool set like Gradle 8.2+, AGP 8.1+, Kotlin 1.9 (already addressed in https://github.com/apache/cordova-android/issues/1642) ## Motivation Behind Feature Starting from AGP 8.1.0 Android ships with JDK 17 bytecode. https://developer.android.com/build/releases/gradle-plugin#8-1-0 Current cordova-android build.gradle template hardcodes the JVM toolchain to the version 1.8 which is incompatible with the latest AGP plugin: ```groovy android { ... compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } ... ``` ## Feature Description There are multiple ways to support AGP 8.1+: - Make JVM version customisable so a developer can set it from `config.xml` (a bit more work, I am not sure whether it's going to be beneficial). Or - Make a hard switch to JVM 17: ```groovy compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org