GitFr33 commented on issue #1636: URL: https://github.com/apache/cordova-android/issues/1636#issuecomment-1648792655
Thanks for your help @breautek. You were correct, although I had Java 11 selected with update-alternatives my JAVA_HOME was pointing to java 8. Fixing that helped — but now I'm getting the following error: ``` The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. The following dependencies do not satisfy the required version: root project 'Project Name' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20 ``` I'm not sure if this is due to an out of date plugin or due to using gradle 8 instead of 7 but I'm confused about the relation or difference between Gradle version and Android Gradle plugin versions. My projects gradle-wrapper.properties file defines: `distributionUrl=https://services.gradle.org/distributions/gradle-7.6-all.zip` likewise cdv-gradle-config.json `"GRADLE_VERSION":"7.6"` and `"AGP_VERSION":"7.4.2"` but running `gradle -v` returns `Gradle 8.1.1` and I'm not sure what's the correct way to downgrade it. Everything I've found about downgrading to a previous version of gradle has to do with project level gradle version such as defined in gradle-wrapper.properties -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
