IntelliJ IDEA and Gradle - Cannot be applied to '(groovy.lang.Closure)'

后端 未结 8 1355
没有蜡笔的小新
没有蜡笔的小新 2021-02-03 17:07

I have a Gradle file which, whenever I load open it in IntelliJ IDEA 14.1.5, shows IDE errors for the entire file. Namely all the errors seem to be either:

java.

8条回答
  •  醉话见心
    2021-02-03 17:22

    I've noticed this often. When creating a new project and using the 'Gradle' template, IntelliJ seems to get it all wrong. So what I've resorted to doing is after creating a new project, delete the .idea and .iml files and re-open the project directly from the Gradle file. IntelliJ seems to better understand what is going on in this case.

提交回复
热议问题