简体   繁体   中英

Open Gradle Project in Netbeans 12

When i open a gradle project in Netbeans 12 i have this message:

"Project Problems: Priming Build Required" "Description: In order to be able to read this project, NetBeans needs to execute its Gradle scripts as priming build.Executing Gradle scripts allows arbitrary code execution, as current user, on this system." (My gradle project works without Netbeans IDE.) What means this? I want more details. Netbeans version: 12 Gradle version: 6.5 Java Version: 14.0.2

For me the solution was to check down right "unread notification" You have (1) unread notification

For me the problem was with test dependency that was as SNAPSHOT version. eg testImplementation ("com.company:some-package:1.10-SNAPSHOT") Then the error was: java.nio.file.InvalidPathException: Illegal char <:> at index 31: com.company\some-package:1.10-SNAPSHOT\20201124.210844-10

After solving this issue (changed dependency), testImplementation ("com.company:some-package:1.10.0") the project was loaded correctly.

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