1. 程式人生 > >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 Request"的解決辦法

tar iss returns 圖片 height proxy alt req turn

最近更新了一下Android Studio(下文簡寫成AS),然後打開工程發現出現Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request",如圖:

技術分享圖片

什麽鬼。幾番折騰,終於知道原因了。直接寫解決方案吧。

1。打開設置

技術分享圖片

2。依次選擇圖中的第一步,第二步。並設置gradle的目錄

技術分享圖片技術分享圖片

3。設置好後應用,並點OK.

技術分享圖片

4。刷新Gradle

技術分享圖片

5。運行,錯誤解決

技術分享圖片

如果沒有gradle,可以到:http://services.gradle.org/distributions去下載,解壓,然後就可以按照這個方法選擇了

參考: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 Request"的解決辦法