Blocked
Blocked

Reputation: 351

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

Upvotes: 1

Views: 4344

Answers (2)

Dinushika Rathnayake
Dinushika Rathnayake

Reputation: 419

In my case it's due to dependency issue. To fix dependency issue I

  • upgrade the gradle version.
  • add missing imports in build.gradle

Upvotes: 0

Andy
Andy

Reputation: 1

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. e.g. 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.

Upvotes: 0

Related Questions