Open yihchu opened 4 years ago
In my case with IntelliJ Idea what solved the problem was: - Going to: File > Settings (Preferencies for Mac) > Build, Execution, Deployment - Selecting for "Build and run using": Intellij IDEA (instead of "Gradle") - Same for "Run tests using" That did not explain why Gradle is displaying the warning, but that let me perform the test and progress in my work.
In my case with IntelliJ Idea what solved the problem was: - Going to: File > Settings (Preferencies for Mac) > Build, Execution, Deployment - Selecting for "Build and run using": Intellij IDEA (instead of "Gradle") - Same for "Run tests using" That did not explain why Gradle is displaying the warning, but that let me perform the test and progress in my work.
o, thank you! your resolution helped me!!!!! I have spent many hours fixing it!
I need 'assert' in my code, so i set '-ea' to vmoptions, but it can not run, and give me the error:
Run with vmoptions: '-ea', error: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
I tried java project and maven project, both of them works well, so i guess i must be something wrong with gradle. I have tried gradle-4.10,gradle-6.5 and gradle-6.6.1, all of them went wrong.
Expected Behavior
no error
Current Behavior
error:
Run with vmoptions: '-ea', error: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
Context
Just new a gradle project in idea, and add a Class and a main function, just like
and add '-ea' to vm options, and the error will go out
Steps to Reproduce
Your Environment
very simple: jdk 8 or 11, gradle 4.10 - 6.6.1, nothing else