【发布时间】:2017-11-19 01:10:45
【问题描述】:
最近我安装了 android studio 但我无法构建一个空项目!问题出在哪里?!!
在下面找到同步问题详细信息
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test:runner:1.0.1. Could not resolve com.android.support.test:runner:1.0.1. Required by: project :app > Could not resolve com.android.support.test:runner:1.0.1. > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.pom'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.pom'. > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > unable to find valid certification path to requested target
【问题讨论】:
-
你能用普通浏览器下载 pom 文件吗?链接:
https://dl.google.com/dl/android/maven2/com/android/support/test/runner/1.0.1/runner-1.0.1.pom -
不!我不能..出现 404 错误
-
您的项目似乎没有构建,因为它需要下载该文件。这里可以下载,估计是网络问题。
-
你可以尝试去掉gradle.build中的测试
标签: android android-studio gradle compilation