为什么我要遇到此错误?
gradle项目刷新失败 错误:无法下载Artifact'com.android.tools.build:Builder:0.12.2:Builder.jar':脱机模式不可用的缓存版本
我的build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
感谢您的解决方案/想法。
转到Settings->Build,Execution,Deployment->Gradle
。并检查 Offline Work
然后重试。
转到settings->在搜索框中键入gradle,然后单击结果,然后取消选中离线工作