最近更新了一下Android Studio,在导入新项目之后出现Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 Bad Request”的错误,如下图所示:

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解决办法

经过检查后发现这里是丢失了android studio的gradle目录,下面总结一下我的解决方案:
1、设置:settings->Build,Execution,Deploymnet->Gradle

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解决办法

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解决办法

2、选择好Gradle的目录后点击Ok

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解决办法

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解决办法

3、刷新Gradle,重新编译

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解决办法

4、再次运行发现该问题已经解决

Android studio出现Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解决办法

相关文章:

  • 2021-11-16
  • 2021-09-02
  • 2021-09-10
  • 2021-05-17
  • 2021-12-05
  • 2022-01-17
猜你喜欢
  • 2021-10-11
  • 2022-12-23
  • 2021-08-18
  • 2021-09-16
  • 2021-05-07
相关资源
相似解决方案