Android Studio - 无法找到请求目标的有效证书路径 [英] Android Studio - Unable to find valid certification path to requested target
问题描述
出现此错误
$ b
Gradle'project_name'项目刷新失败:找不到要求目标的有效证书路径
当我在Android Studio 0.8.14 Mac OSX上创建一个新项目时
构建。 gradle文件似乎变成空的
//顶级构建文件,您可以在其中添加对所有子项目/模块。
$ b buildscript {
repositories {
jcenter()
}
依赖关系{
classpath'com.android.tools.build:gradle: 0.13.2'
//注意:不要在这里放置应用程序依赖关系;它们属于单个模块build.gradle文件中的
//
}}
allprojects {
存储库{
jcenter()
} }
我无法运行该项目,似乎必须手动配置所有内容。 p>
以下是idea.log http://pastebin.com/kyhfrBp9 p>
它发生在我身上,原来是因为 Charles Proxy 。
解决方案:
- 关闭Charles Proxy; 重新启动Android Studio。
I'm getting this error
Gradle 'project_name' project refresh failed: Unable to find valid certification path to requested target
when I create a new project on Android Studio 0.8.14 Mac OSX
Build.gradle file seems to become empty
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.13.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
allprojects {
repositories {
jcenter()
} }
And I can't run the project, seems that I have to configure everything manually.
Here is the idea.log http://pastebin.com/kyhfrBp9
It happened to me, and turned out it was because of Charles Proxy.
Solution:
- Shut down Charles Proxy;
- Restart Android Studio.
这篇关于Android Studio - 无法找到请求目标的有效证书路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!