美文网首页
gradle报错:unable to find valid ce

gradle报错:unable to find valid ce

作者: 淡燃 | 来源:发表于2020-08-14 18:35 被阅读0次

错误信息:

   > Could not resolve com.android.tools.build:gradle:4.0.1.
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:4.0.1.
         > Could not get resource 'https://maven.aliyun.com/repository/public/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom'.
            > Could not GET 'https://maven.aliyun.com/repository/public/com/android/tools/build/gradle/4.0.1/gradle-4.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
      > Could not resolve com.android.tools.build:gradle:4.0.1.
         > Could not get resource 'https://maven.aliyun.com/repository/google/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom'.
            > Could not GET 'https://maven.aliyun.com/repository/google/com/android/tools/build/gradle/4.0.1/gradle-4.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

解决办法
尝试了各种办法,后来把我电脑的代理Charls关了,可以了!!!,说到底还是代理引起的
如果关了之后还没有起效,可以尝试把AndroidStudio重启一下,如果还有其他代理软件,也可以尝试关一下试试

相关文章

网友评论

      本文标题:gradle报错:unable to find valid ce

      本文链接:https://www.haomeiwen.com/subject/zwlndktx.html