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

后端 未结 8 1351
没有蜡笔的小新
没有蜡笔的小新 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:30

    What I found is that this warning is from Groovy inspection of the Intelliji. So if your project is not pure groovy, you can disable this inspection by going to File -> settings -> Editor -> Inspections -> disable Groovy. Again, just a workaround.

    0 讨论(0)
  • 2021-02-03 17:34

    Try File | Invalidate Caches and restart. It worked for me after i mess the syntaxe somewhere else in the file.

    0 讨论(0)
提交回复
热议问题