gradle test 不可用

Caused by: org.gradle.api.tasks.testing.TestExecutionException:

1. 用以下命令去看详细错误

gradlew clean build --stacktrace

发现:Exception in thread "main" java.net.UnknownHostException: Services.gradle.org

2. 修改gradle配置

在项目 Settings -> Gradle -> Build and run using: IDEA , Run tests using: IDEA -> apply -> ok -> 重新编译

posted @ 2020-11-13 10:43  快乐的张小凡  阅读(615)  评论(0编辑  收藏  举报