Failed to load class error kotlin.collections.CollectionsKT when trying to synchronize gradle

Today, I started getting an error Unable to load class 'kotlin.collections.CollectionsKT'(as shown in this image) every time I try to execute gradle to synchronize my project. I could not find anything about this error, and the only solution is to disable the kotlin plugin on Intellij. Some of my projects do not have kotlin, but others have (those who have kotlin also throw this error when trying to synchronize), so this is not a viable option.

Does anyone know what this could be?

+4
source share
2 answers

, . Kotlin, Gradle ( gradle -wrapper.properties) 3.3 4.1 - . , .

+4

, GitHub. , , , gradle gradle -wrapper.properties gradle, , . gradle -wrapper.properties, gradle. .

gradle build.gradle. , . build.gradle

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.3.3'
    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}

, .

0

Source: https://habr.com/ru/post/1689640/


All Articles