com.android.tools.build:gradle:0.9.1可用于离线模式无缓存版本 [英] No cached version of com.android.tools.build:gradle:0.9.1 available for offline mode
问题描述
我得到一个错误信息,同时建立在Android的Studio中的一个新的Hello World项目。
I got a an error message while building a new Hello World project in Android Studio.
失败:建立失败,一个异常
FAILURE: Build failed with an exception.
-
出了什么问题: 配置发生根项目问题
MyApplication2
。
What went wrong: A problem occurred configuring root project
MyApplication2
.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:0.9.1.
Required by:
:MyApplication2:unspecified
No cached version of com.android.tools.build:gradle:0.9.1 available for offline mode.
BUILD失败。
BUILD FAILED
Android的工作室版本:0.5.2 摇篮版本:0.9.1
Android Studio version : 0.5.2 Gradle version : 0.9.1
我使用代理服务器连接到互联网。
I'm using a proxy connection to Internet.
请谁能给一个解决这个问题。我搜索互联网的上述问题,但无法得到任何妥善解决这个问题。
Please can anyone give a solution to this problem. I have searched internet for above problem, but couldn't get any proper solution to this issue.
推荐答案
今天更新Android的工作室后有同样的错误。对我来说,这不是代理服务器设置的问题:
Had the same error after updating Android Studio today. For me, it wasn't a matter of proxy settings:
- 取消选中文件中的脱机工作>设置>摇篮>全局摇篮设置
- 通过重新启动了Android工作室重新同步的项目,例如:
- 一旦同步,你可以再次检查该选项为脱机工作。
(摇篮0.11版本......和Android工作室版本0.6.0 preVIEW)
(Gradle version 0.11... and Android Studio version 0.6.0 Preview)
这篇关于com.android.tools.build:gradle:0.9.1可用于离线模式无缓存版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!