2016-06-27 78 views
0

最近我開始學習libgdx庫並希望在Android Studio上嘗試一下。Libgdx Android Studio代理問題

我跟進了一些在不同網站上找到的教程。問題是當gradle同步開始時,它給出一個錯誤:

Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

我沒有落後任何代理。我試圖禁用防火牆,啓用離線文件夾的離線/在線gradle同步,強制sdk使用http而不是https下載,將distributionUrl更改爲http並更改了分發網址。 沒有工作。

我真的不知道這是否是巧合與否,但是當我嘗試推出獨立的SDK,它試圖獲取保存在SDK更新網站網址時給出了這樣的錯誤:

Failed to fetch URL https://dl.google.com/android/repository/repository-11.xml , reason: HttpHostConnect Connection to https://dl.google.com refused

謝謝。

回答

0

嘗試做的是:

  1. Android SDK中管理員>工具>選項
  2. 檢查 「強制https://開頭... 來源是牽強使用http:// ...」