I've migrated groovy to kotlin dsl, I am able to b...
# gradle
k
I've migrated groovy to kotlin dsl, I am able to build an app, but I am unable to get rid of the warnings in AS. Anyone encountered it?
v
Would maybe help if you mention which warnings you see
k
All of the classes are underlined red and for example, if I hover over
plugins
I get a warning:
Copy code
Cannot access 'java.lang.Comparable' which is a supertype of 'org.gradle.kotlin.dsl.KotlinBuildScript'. Check your module classpath for missing or conflicting dependencies
k
Works with Gradle JDK 1.8, tnx
Was set to 11
f
For me, i had to set Java to 16 to work
v
It's probably just the changing per-se that then causes a fresh reimport that works.