No scala sdk in module with Gradle

From a fairly recent version of IntelliJ, importing any gradle builds that have scala always results in 'no scala sdk in module' errors on every file. This becomes incredibly frustrating especially as after I add the scala sdk (which I didn't need to do previously), any time build.gradle is modified then the sdk is lost again and has to be readded.

Is there any way of finding out the root cause of this? Any additional information I can provide?

评论操作 固定链接

I've created a ticket for further work on this case. In this ticket please provide Scala Plugin versions from which to which (or at least to which) you did update and found Gradle import broken.

Also, I can't reproduce it with some random Scala Gragle projects. Is it possible to share your project or give us an example which shows this error?