You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dependency is automatically added by the Kotlin JVM plugin.
This does not match the version of Kotlin that is embedded with Gradle. In fact, in order to be compatible with a wide range of Gradle version no dependency should be specified at all. The Kotlin stdlib dependency will be provided at runtime by Gradle.
Suggestions
Replace the Kotlin/JVM plugin with the embedded-kotlin plugin (I recommend this, it's easier!)
When I look in the
.module
metadata for the Gradle plugins I can see that they have a dependency on kotlin-stdlib 1.9.22https://plugins.gradle.org/m2/androidx/build/gradle/gcpbuildcache/gcpbuildcache/1.0.0-beta07/
The dependency is automatically added by the Kotlin JVM plugin.
This does not match the version of Kotlin that is embedded with Gradle. In fact, in order to be compatible with a wide range of Gradle version no dependency should be specified at all. The Kotlin stdlib dependency will be provided at runtime by Gradle.
Suggestions
Replace the Kotlin/JVM plugin with the
embedded-kotlin
plugin (I recommend this, it's easier!)Manually exclude the kotlin-stdlib dependency (for an example, see Dokka Gradle Plugin).
The text was updated successfully, but these errors were encountered: