Sync taking very long after switching to Kotlin DSL with message: Importing build script classpath data

I tried switching my rather simple app over to the Kotlin DSL from Groovy but now everytime I change something in my build scripts and have to re-sync my project it takes 2-3 minutes while something like that took a few seconds before. During most of the duration Gradle says the following: “Importing build script classpath data”. Can anyone point me in the right direction how I could tackle this problem? I can’t find anything on Google and I don’t really have the time to do trial and error until I find something. Otherwise I would have to switch back to Groovy :frowning:

1 Like

I was able to fix this error by upgrading my gradle wrapper in gradle/wrapper/gradle-wrapper.properties to v6.5

1 Like

It works like a charm! Many thanks!