我不能用android studio构建我的第一个空项目

时间:2017-11-19 01:10:46

标签: android android-studio gradle compilation

我已经安装了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




1 个答案:

答案 0 :(得分:1)

您可以尝试删除gradle.build(app)内部依赖项中的所有测试文件,它看起来像这样

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

问题可能是因为您的互联网连接并且无法下载文件。