我刚刚安装了最新版本的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