简体   繁体   中英

Building java project with gradle

I am following this tutorial : https://spring.io/guides/gs/gradle/ . I did everything until the part where I need to add the following line to build.gradle :

apply plugin: 'java' 

When I run gradle tasks in cmd I get the following error :

Failed to apply plugin [id 'org.gradle.java']`> org.gradle.invocation.DefaultGradle_Decorated cannot be cast to org.gradle.api.internal.project.ProjectInternal". 

I couldn't find an answer online .

当我将build.gradle内容错误地放入settings.gradle时,我遇到了同样的问题...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM