Android studio 如何修复Gradle项目刷新失败

Android studio 如何修复Gradle项目刷新失败,android-studio,build.gradle,Android Studio,Build.gradle,为什么我会出现这个错误?如何修复它,我试着跟随任何介绍,但无法修复 Gradle项目刷新失败 错误:无法下载工件“com.android.tools.build:builder:0.12.2:builder.jar”:脱机模式下没有可用的缓存版本 我的身材,格雷德尔 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {

为什么我会出现这个错误?如何修复它,我试着跟随任何介绍,但无法修复

Gradle项目刷新失败 错误:无法下载工件“com.android.tools.build:builder:0.12.2:builder.jar”:脱机模式下没有可用的缓存版本

我的身材,格雷德尔

// 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()
    }
}

感谢您的解决方案/想法。

进入
设置->构建、执行、部署->渐变
。然后选中脱机工作并重试。

进入设置->在搜索框中键入gradle,然后单击结果并取消选中脱机工作

请向我们显示您的gradle文件。我找不到设置选项,请问在哪里可以获得它,我是新手,在android studio中点击“文件”菜单。我已经检查了脱机工作,并再次尝试,但我什么也没得到,你能告诉我其他修复方法吗,谢谢