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

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

    I found this suggestion in the IDEA bug tracker(IDEA-142683):

    Workaround:
    One can add a comment such as
    //noinspection GroovyAssignabilityCheck
    to suppress the warning, but this should not be necessary as these are standard every day Gradle usages.

    This issue was recently updated and is marked fixed, ready for release with version 2016.2 release.

提交回复
热议问题