ebhsgit opened a new issue #1235: URL: https://github.com/apache/cordova-android/issues/1235
# Bug Report ## Problem Using cordova 9.0.0, when I set `GradlePluginKotlinVersion` to 1.4.31 I get compilation error "Expecting a parameter declaration" due to trailing comma. ---- Kotlin allowed trailing comma in 1.3.70 https://youtrack.jetbrains.com/issue/KT-34743 ### What is expected to happen? Compile without error ### What does actually happen? Unable to compile. Error "Expecting a parameter declaration" pointing to the trailing comma ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> ``` data class Test( val test1: String, val test2: String, ) { fun test( t1: String, t2: String, ) { } } ``` This code when compiled will result in error ------ After investigating, I notice that `kotlin-android-extensions-runtime` did not respect the `GradlePluginKotlinVersion` variable. It was set to 1.3.50. This is due to `org.jetbrains.kotlin:kotlin-gradle-plugin` being hardcoded to version 1.3.50 in `bin\templates\project\build.gradle` ### Command or Code <!-- What command or code is needed to reproduce the problem? --> ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [ x ] I searched for existing GitHub issues - [ x ] I updated all Cordova tooling to most recent version - [ x ] I included all the necessary information above -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
