idea 运行异常 gradle 项目

avatar
作者
筋斗云
阅读量:0

运行异常日志如:

> Process 'command 'C:/Program Files/Java/jdk-1.8/bin/java.exe'' finished with non-zero exit value 1  * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.  * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':Test.main()'. Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:/Program Files/Java/jdk-1.8/bin/java.exe'' finished with non-zero exit value 1 

解决方案:
Idea>Settings>Build, Execution, Deployment>Build Tools>Gradle
设置以下2项
Build and run using:IDEA(原Gradle)
Run tests using:IDEA(原Gradle)

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!