简体   繁体   English

&#39;sourceSets&#39;无法应用于groovy.lang.Closure <org.gradle.api.tasks.SourceSet> IntelliJ 2016中的警告

[英]'sourceSets' cannot be applied to groovy.lang.Closure<org.gradle.api.tasks.SourceSet> warning in IntelliJ 2016

IntelliJ swears on sourceSets entry in build.gradle : IntelliJ发誓对sourceSets在入境build.gradle

在此处输入图片说明

Why and how to fix? 为什么以及如何解决?

IntelliJ is 2016.1 IntelliJ2016.1

This is false-positive in IJ that I reported already here: https://youtrack.jetbrains.com/issue/IDEA-141750 我已经在这里报告过的IJ中这是假阳性: https//youtrack.jetbrains.com/issue/IDEA-141750
For the time being, just ignore it and an update of IJ in the future should make the issue go away. 暂时,请忽略它,以后再更新IJ应该会使问题消失。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 'sourceSets'无法应用于Android Studio中的'groovy.lang.closure'警告 - 'sourceSets' cannot be applied to 'groovy.lang.closure' warning in Android Studio IntelliJ IDEA 和 Gradle - 不能应用于“(groovy.lang.Closure)” - IntelliJ IDEA and Gradle - Cannot be applied to '(groovy.lang.Closure)' 升级Android项目以使用Java8(compileOptions不能应用于groovy.lang.closure) - Upgrading Android project to use Java8 (compileOptions cannot be applied to groovy.lang.closure) 在Java应用程序中使用groovy.lang.Closure - Using groovy.lang.Closure in Java application 错误:(56,0)原因:org.gradle.api.tasks.testing.Test_Decorated无法转换为java.lang.Class - Error:(56, 0) Cause: org.gradle.api.tasks.testing.Test_Decorated cannot be cast to java.lang.Class 如何转换 Groovy -&gt; Kotlin DSL(Gradle)的“sourceSet”? - How to convert “sourceSet” of Groovy -> Kotlin DSL (Gradle)? Gradle SourceSet IntelliJ 与 Eclipse - Gradle SourceSet IntelliJ vs. Eclipse Gradle错误:无法将java.lang.String强制转换为org.gradle.api.artifacts.Configuration - Gradle error: java.lang.String cannot be cast to org.gradle.api.artifacts.Configuration Intellij gradle 5.0 刷新/同步警告和根任务丢失 - Intellij gradle 5.0 refresh/sync warning and root tasks missing groovy.lang.MissingPropertyException:无法为类型为org.gradle.api.Project的项目&#39;:flamingo&#39;设置未知属性&#39;versionKey&#39; - groovy.lang.MissingPropertyException: Could not set unknown property 'versionKey' for project ':flamingo' of type org.gradle.api.Project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM