Android Studio - 无法找到请求目标的有效认证路径 [英] Android Studio - Unable to find valid certification path to requested target

查看:84
本文介绍了Android Studio - 无法找到请求目标的有效认证路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误

Gradle 'project_name' 项目刷新失败:无法找到请求目标的有效认证路径

当我在 Android Studio 0.8.14 Mac OSX 上创建一个新项目时

when I create a new project on Android Studio 0.8.14 Mac OSX

Build.gradle 文件好像变空了

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.

这是idea.log http://pastebin.com/kyhfrBp9

Here is the idea.log http://pastebin.com/kyhfrBp9

推荐答案

它发生在我身上,结果是因为 Charles Proxy.

It happened to me, and turned out it was because of Charles Proxy.

Charles Proxy 是一个 HTTP 调试代理服务器应用程序

Charles Proxy is a HTTP debugging proxy server application

解决方案(仅当您安装了 Charles Proxy 时):

Solution (only if you have Charles Proxy installed):

  1. 关闭 Charles 代理;
  2. 重启 Android Studio.

这篇关于Android Studio - 无法找到请求目标的有效认证路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆