Closed lianglee closed 8 months ago
cordova-android@12 kotlin version defaults to 1.7.21
Is your app or any of your installed plugins overriding the GradlePluginKotlinVersion
preference?
@breautek thank you for saving my time it was indeed one plugin that I used. Removed it and resolved the issue.
One last question how to use cordovaConfig.AGP_VERSION these variables in build.gradle (root) ?
MY ROOT/build.gradle
signingConfigs {
release {
storeFile file("/PATH/keystore")
storePassword "****"
keyAlias "****"
keyPassword "****"
}
}
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/'}
}
dependencies {
// Add this line
classpath 'com.google.gms:google-services:4.3.8'
}
}
buildTypes {
release {
// (...)
signingConfig signingConfigs.release
}
}
I think you'll need apply from: 'CordovaLib/cordova.gradle'
(or a way to import the cordova.gradle
which is what sets up cordovaConfig
whose values are mostly sourced from a generated json file.
But i'm not 100% confident if that will work. I'd need to do testing and experimenting which I don't really have the time to do.
the cordova.gradle
is applied at the project level however, so I think all modules should have access to cordovaConfig
, including the app module gradle file.
Thanks for letting me know I will check it out!
Bug Report
When using android platform 12 while compiling the app getting error
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
Information