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 -> 重新编译