I upgraded my IntelliJ IDEA installation from 2018.3 to 2019.1 and am now seeing errors in my build.gradle
that were not there before. I suspect changed preferences but can not find any.
I am seeing two kinds of errors:
- Almost everything is underlined and the warning message popup says "No candidates found for method call plugins." or "No candidates found for method call buildscript."
- I use the Spring Boot plugin and import it on the first line. This is now red and the popup says "Cannot resolve symbol 'SpringBootPlugin'".
This worked fine in 2018.3. The gradle build works, i.e. running ./gradlew …:build
from the command line works and so does running gradle tasks from the IDE.
Update
I noticed that in "Project structure" the root module (this is a multi-module build) existed twice: once with the name in settings.gradle
and once with the name of the directory the code is in. When changing the name in settings.gradle
to the name of the directory, the duplicate entry in "Project structure" disappeared and the errors in build.gradle
disappeared.