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

最近更新了一下Android Studio,在匯入新專案之後出現Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 Bad Request”的錯誤,如下圖所示:

經過檢查後發現這裡是丟失了android studio的gradle目錄,下面總結一下我的解決方案:
1、設定:settings->Build,Execution,Deploymnet->Gradle

2、選擇好Gradle的目錄後點擊Ok

3、重新整理Gradle,重新編譯

4、再次執行發現該問題已經解決

相關推薦

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

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 Request”的錯誤,如下圖所示: 經過檢查後發現這裡是丟失了android studio的gradl

android studio提示Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques

解決方法:1.studio裡面->setting->Build,Execution,Deployment裡面的Gradle->配置此專案的gradle檔案路徑為studio應用所使用的版本路徑(如果還報錯,檢視gradle版本是否與studio版本一致)

android Studio 出現Unable to resolve dependency for ':
關於Android Studio出現Error:Failed to open zip file. Gradle's dependency cache may be corrupt 異常

今天本來開始使用Android Studio進行NDK開發入門,但是但我下載完安裝NDk之後,新建工程時就不斷的報這個錯誤。無論點選多少次Re-Download沒用。 這個錯誤還挺常見的,為了避免自己忘了,便編寫此文作為日誌。 ps:我出現過兩次這個情況,另一種是Andro

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"的解決辦法原因 :AS 自帶的gradle 版本太低。 第一步: 下載對的 gredel

Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"

轉自:http://stackoverflow.com/questions/34313299/gradle-project-refresh-failed-after-androidstudio-update Gradle project refresh fai

Android studio 出現Error:failed to find Build Tools revision 28.0.0 rc1解決方案

在Android studio中新建專案出現上圖所示錯誤,解決方案為:在app->build.gradle中修改buildToolsVersion這一項的版本號修改後的app->build.gradle檔案內容如下:

整合butterknife出現 Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()

錯誤為: Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'. Possible causes for this unexpected erro

Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

strong state star intro https ogr enable introduce gin For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, w

關於android studio 出現Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 的解決辦法 前段時間開啟Android studio 在build過程中總會出現以下錯誤

前段時間開啟Android studio 在build過程中總會出現以下錯誤 Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'co

android studio 出現Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 的解決辦法

錯誤程式碼: Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations

關於android studio 出現Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 的解決辦法

前段時間開啟Android studio 在build過程中總會出現以下錯誤 Error:Execution failed for task ‘:app:preDebugAndroidTestBuild’. Conflict with dependency ‘

升級 android studio 報錯Unable to resolve dependency for ':
Android Studio 3.0——unable to resolve dependency for cordovalib

今天突然想起以前弄過的Cordova,於是便下來重新玩玩,一開始Android Studio還沒更新,一切正常。然而當我選擇確定更新為3.0並同時更新了gradle後,專案竟然開始報錯 unable to resolve dependency for cordovalib.

Android studio中提示 unable to locate adb的解決方法

- 檢查是否有其他軟體佔用了adb的埠 1、進入Android studio的terminal,也可以用電腦自帶的控制檯 2、控制檯中輸入 netstat -anp | grep 5037 1)adb佔用的是5037埠,通過埠查詢使用該埠的程序,如

匯入android工程出現unable to get system library for the project

匯入android工程的時候出現了 :  unable to get system library for the project 解決問題的方法是開啟工程中的project.properties檔案,把版本號改成本機版本   比如: target=a

Android Studio報錯Unable to resolve dependency for ':[email&#

Android Studio報錯Unable to resolve dependency for’:[email protected]/compileClasspath’:無法引用任何外部依賴的解決辦法 Android Studio 在引用外部依賴時

安裝 Android studio 執行 爆出 Unable to access Android SDK add-on list -...

安裝 Android studio 都會安裝 Android sdk,這時候一般自己會選擇自己需要安裝的jdk目錄,而不是android studio預設安裝的jdk 的目錄。但是安裝完成之後第一次執行會爆出  UnabletoaccessAndroidSDK add-on

Android 專案報錯 Error:Unable to find optional library: org.apache.http.legacy

Eclipse 專案移植到AndroidStduio 後 執行報錯Error:Unable to find optional library: org.apache.http.legacy Android 6.0版本已經已經基本將Apahce Http Client 移