breautek commented on issue #1636:
URL: 
https://github.com/apache/cordova-android/issues/1636#issuecomment-1648820190

   > 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.
   
   To put it simply, Gradle is a build system. It's mainly used for Java/Kotlin 
projects. The Android Gradle Plugin is Android's Gradle extension to support 
building Android libraries and applications.
   
   As of 7.x, Android's Gradle Plugin version scheme is their major version 
dictates the supported version of Gradle itself. So AGP 7.x will run on Gradle 
7.
   
   Gradle has a concept of "wrappers" which is a project-level install of 
Gradle, at the version that the project needs. Gradle 8.0 would not properly 
initialize a gradle 7 wrapper, but it appears that has been fixed in some 
patch, at least in 8.1. So downgrading your system gradle is probably not 
necessary.
   
   > 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
   
   As for this, it's kinda interesting. Do you have `GradlePluginKotlinVersion` 
defined? The defualt version on cordova-android@12 should be `1.7.21`. You can 
try setting the preference in your `config.xml`:
   
   ```xml
   <preference name="GradlePluginKotlinVersion" value="1.7.21" />
   ```
   
   I'd also try doing a search in folder of the `plugins/` directory and see if 
any plugins is either defining `GradlePluginKotlinVersion` in their 
`plugin.xml` files, or  if they are declaring any dependencies on 
`org.jetbrains.kotlin:kotlin-gradle-plugin` themselves.


-- 
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]

Reply via email to