2017-08-02 136 views
0

配置为包装的gradle项目版本3.5。这个gradle wrapper版本在导入项目时正常工作Intelij IDEA 2017.1和IDEA war artifact可用。InteliJ IDEA神器配置不正确,使用Gradle

我尝试更新gradle这个包装版本4.0.2和IDEA无法配置的文物,它显示了这样的警告:

Warning:<i><b>root project 'dummy-trunk': Web Facets/Artifacts will not be configured properly</b> 
Details: org.gradle.internal.typeconversion.UnsupportedNotationException: Cannot convert the provided notation to a File or URI: . 
The following types/formats are supported: 
    - A String or CharSequence path, for example 'src/main/java' or '/usr/include'. 
    - A String or CharSequence URI, for example 'file:/usr/include'. 
    - A File instance. 
    - A Path instance. 
    - A URI or URL instance.</i> 

也许有人同样的问题?

我不知道如何获取有关警告的更多信息。 我试图运行> gradlew idea -d,但此调试输出不显示警告。

+0

你试过2017.2.1版吗? Gradle 4.x应该在那里得到正确的支持。 – CrazyCoder

+0

你试过'gradlew wrapper'来更新包装吗? – leonardo12

+0

尚未尝试更新IDEA 2017.2。我回头告诉你。 –

回答

1

解决了IDEA 2017年2月1日 +摇篮包装4.0.2

THX到@CrazyCoder的建议。

0

我有同样的问题。

(*),以更新的IntelliJ IDEA 2017年2月5日

(*)使用Gralde 4.2.1

(*)使用摇篮的地方,使用mavenLocal()

这是一个样品(零件的文件build.gradle

buildscript { 
    ext { 
     springBootVersion = '2.0.0.M5' 
    } 
    repositories { 
     mavenLocal() 
     mavenCentral() 
     maven { url "https://repo.spring.io/snapshot" } 
     maven { url "https://repo.spring.io/milestone" } 
    } 
    dependencies { 
     classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 
    } 
} 
相关问题