新建或者导入项目的时候,报错如下:

Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'. Received status code 400 from server: Bad RequestEnable Gradle 'offline mode' and sync project

Android Studio3.1.2 build.gradle classpath参数报错_第1张图片但是检查了本地文件,gradle3.1.2是存在的,不知道为什么不从本地拿?

Android Studio3.1.2 build.gradle classpath参数报错_第2张图片

build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    repositories {        google()        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:3.1.2'        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}allprojects {    repositories {        google()        jcenter()    }}task clean(type: Delete) {    delete rootProject.buildDir}

更多相关文章

  1. Android 如何加载大图片
  2. Android 图片加载库Glide
  3. android 自定义图片剪裁
  4. Android——ImageButton【图片按钮】的点击事件与属性
  5. android 选择本地图片并预览
  6. Android 实现文件(图片)上传
  7. Android对话框图片全屏
  8. android如何获取url指定的图片资源

随机推荐

  1. Android中创建对话框
  2. Android(安卓)Stduio出现“required plug
  3. android ExpandableListView ExpandableL
  4. pandaboard ES学习之旅——4 Android源代
  5. Android 中文 API (29) ―― CompoundButto
  6. 跟着做 Android NDK学习入门如此简单(二)
  7. android数据存取的四种方式
  8. 在activity中调用Application 出现androi
  9. Android——编译release版签名系统
  10. Android开发书籍和教程