Open gouteru opened 9 months ago
I've got the same error, and I resolved it with the following steps:
On config.xml:
<preference name="GradlePluginKotlinEnabled" value="true" />
<preference name="GradlePluginKotlinVersion" value="1.9.0" />
Then, on \platforms\android\app\build.gradle:
Delete the line 24: apply plugin: 'kotlin-android-extensions'
I've created a Cordova hook so I don't have to manually delete the line everytime I add or remove the android platform. This is just temporary solution until cordova-13
arrives (that line will be automatically removed in cordova-13).
Bug report
CHECKLIST
[✔️ ] I have read the issue reporting guidelines
[ ✔️ ] I confirm this is a suspected bug or issue that will affect other users
[ ✔️ ] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[ ✔️ ] I have read the documentation thoroughly and it does not help solve my issue.
[ ✔️ ] I have checked that no similar issues (open or closed) already exist.
Current behavior:
When update cordova-plugin-firebasex 16.1.0 to 16.4.0, cordova build android failed with the following errors. Finally, I gave up and revert to 16.1.0.
Expected behavior:
kotlin 1.9 seems to require Gradle 8 which is not yet supported with cordova-android.
Environment information
Installed platforms:
android 12.0.1 ios 6.3.0
Installed plugins
cordova-plugin-android-dark-mode-support 2.0.0 "AndroidDarkModeSupport" cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter" cordova-plugin-badge 0.8.9 "Badge" cordova-plugin-calendar 5.1.6 "Calendar" cordova-plugin-file 6.0.2 "File" cordova-plugin-firebasex 16.1.0 "Google Firebase Plugin" cordova-plugin-inappbrowser 5.0.0 "InAppBrowser" cordova-plugin-splashscreen 6.0.2 "Splashscreen" cordova-plugin-statusbar 3.0.0 "StatusBar" cordova-plugin-webviewcolor 2.2.0 "WebView background color plugin" cordova-plugin-wkwebview-file-xhr 3.1.0 "Cordova WKWebView File XHR Plugin" cordova.plugins.diagnostic 7.1.2 "Diagnostic"
OS
MacOS 14.3, Xcode 15.1