大家都是要求注释掉,但不想这样,看了很多博客,快绝望的时候,用这个办法成功了文件:E:\android\app (工程文件目录) 下面的 build.gradle 文件

    在这个文件中加入最后划线3行,保存即可,然后再retry

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.i7i8i9.guessinggame"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:design:26.1.0'
     testImplementation 'junit:junit:4.12' 
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

repositories {
maven { url 'http://repo1.maven.org/maven2' }
}

更多相关文章

  1. [图文]为移植到Android平台上的Cocos2d-x项目添加xml布局文件
  2. 今天开始写android的照片浏览器(一)至返回所有图片文件
  3. Android工程内嵌资源文件的两种方法
  4. 删除androidAndroid递归方式删除某文件夹下的所有文件
  5. IntelliJ IDEA 如何导出安卓(Android)apk文件 详细教程
  6. android解析XML文件的三方法之SAX
  7. android文件下载与保存
  8. android 扫描文件(sdcard添加新的音乐文件时候后,可扫描到)

随机推荐

  1. Android开发艺术探索—— 第十一章Androi
  2. Android实现输入手机号时自动添加空格
  3. 从零开始打造一个Android 3D立体旋转容器
  4. [置顶] android 批量插入数据
  5. Android系统信息获取 之二:版本信息获取
  6. 在android中如何使应用程序成为桌面
  7. 使用 Android Studio 为 Android 创建一
  8. javah生成.h文件时提示“找不到类”的解
  9. Android应用程序架构
  10. Android刷机原理之recovery内部工作原理