今天,使用Android Studio 3.0.1 打开下载的工程项目,build project时结果报错,如下:

Error:A problem occurred configuring root project 'apptest'.
>
Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:3.0.0.

     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:3.0.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom'.
               > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilder
Exception:unable to find valid certification path to requested target

解决办法为将com.android.tools.build:gradle的版本号和Android studio的版本号一致。

Could not resolve all files for configuration ':classpath'.问题解决


相关文章:

  • 2022-01-18
  • 2021-07-03
  • 2022-12-23
  • 2021-10-25
  • 2021-12-16
  • 2021-05-23
  • 2021-12-21
  • 2021-06-26
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-11-22
相关资源
相似解决方案