android - 当我同步 gradle 时,android Studio 3.0 出现错误。错误:Cause: unable to find valid certification path to requested target

标签 android android-studio kotlin android-studio-3.0 android-gradle-3.0

当我同步 gradle 时,我在 android Studio 3.0 中遇到以下错误。

Gradle“项目名称”项目刷新失败。

Error:Cause: unable to find valid certification path to requested target

最佳答案

删除jcenter()并将build.gradle文件中的存储库更改为以下格式:

repositories {
    maven {
        url "http://jcenter.bintray.com"
    }
}

关于android - 当我同步 gradle 时,android Studio 3.0 出现错误。错误:Cause: unable to find valid certification path to requested target,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46094911/

相关文章:

android - PhoneGap 的 ChildBrowser Android 插件 - 浏览器在页面完全加载之前不会关闭

android - 更改字符串中的文本颜色?

android - 是否可以使用可扩展 ListView 作为微调器的下拉 View ?

调试:当单步退出方法时,Android studio 会导致应用程序崩溃

kotlin - 注释 : when is arrayOf needed

android - textView 和 XML 声明中的多个变量

java - HersheyFonts 从 OpenCV 4.2.0 核心类文件中消失

Android Studio 2.3 Beta 1 + 支持 25.1.0 = 预览损坏

android - 如何在 Jetpack Compose 中对齐底部一行?

kotlin - 安卓 : unit testing of LiveData and Flow