我剛剛安裝了最新版本的Android Studio(0.8.9),但我無法運行剛從'New Project'嚮導創建的簡單默認應用程序。 當我嘗試運行應用程序,我得到一個錯誤說:無法在新安裝的Android Studio 0.8.9中構建簡單項目,「Gradle項目同步失敗。」
"Gradle 'Testets' project refresh failed Error:Operation timed out. If you are behind an HTTP proxy, please configure the proxy >settings either in IDE or Gradle."
如果我嘗試清潔或重建項目,我得到一個錯誤說:
Information:Gradle tasks [clean, :] Error:A problem occurred configuring root project 'Testets'.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:0.12.2.
Required by:
:Testets:unspecified
Could not GET ' http://jcenter.bintray.com/com/android/tools/build/gradle/0.12.2/gradle-0.12.2.pom '.
Connection to http://jcenter.bintray.com refused
Information:BUILD FAILED
Information:Total time: 1 mins 15.745 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
我發現這些類似的問題,而搜索,但沒有真正包含解決方案。
Gradle project sync failed. Android Studio
android studio can't build project
唯一的線索,我可以發現的是,有一些網絡問題。我試着在家裏和學校裏做,而且「應該」都沒有任何問題。我也禁用了我的計算機上的防火牆。
如果這確實是一個網絡問題,我該怎麼去發現它是肯定的? 關於什麼可能會導致問題的任何其他想法?
我在OSX 10.9.4上運行AS。
非常感謝。 /R
嘗試從您的網頁瀏覽器訪問網址,只要確保這些網址可以在那裏訪問。讓我知道如果是這樣的話。 – pyus13 2014-09-26 11:59:39
@ pyus13無法訪問任何網址。感謝您的回答! – refaul 2014-09-26 13:54:10
那麼它看起來並沒有和Studio的問題有關,它與你的網絡更相關。你是在代理還是受限制的網絡? – pyus13 2014-09-26 13:56:49