【发布时间】:2017-11-30 08:04:41
【问题描述】:
从何处获取有关 Android Studio 中此错误的更多信息
Error:Cause: unable to find valid certification path to requested target
我不知道它来自哪里以及寻找什么?
下面是我的 Build.gradle 中的 sn-p。
buildscript {
repositories {
jcenter() {
url "http://jcenter.bintray.com/"
}
// mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'io.fabric.tools:gradle:1.+'
}
}
allprojects {
repositories {
jcenter() {
url "http://jcenter.bintray.com/"
}
// mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
jcenter() {
url "http://jcenter.bintray.com/"
}
maven { url 'https://maven.fabric.io/public' } }
【问题讨论】:
-
那是因为 (https) 您使用的证书无效或自签名且不受 Android Studio 信任,您可能正在通过代理或类似的东西
-
是的,我是。我该如何解决这个问题?
-
我运行这个的唯一方法是让加密生成我的证书,然后在服务器中设置它,从那里消费回购,但我看到只是在所有这些中添加 Https是一个已知的 repo/s,如果您在代理后面,请使用 vpn 连接到互联网,这样您就可以直接通过代理并使用
标签: android android-studio crashlytics