When I upgrade the kotlin-gradle-plugin version from 1.5.0 to 1.7.20 in Android plugin project, I got this exception.
I use this code in build.gradle
compileGroovy.classpath += files(compileKotlin.destinationDir)
How can I solve it?
My evn is:
- gradle: 7.4
- android-gradle: 7.3.0
- kotlin-gradle-plugin: 1.7.20
I found the replacement function.
so the question can use this code to resolve.