小编D A*_*wal的帖子

Android Studio 2.0 - 此版本的Android Studio与使用的Gradle插件不兼容.尝试禁用即时运行

我更新了Android Studio 2.0预览版6并且通常使用它很长.但是当我今天创建一个新项目时,它显示错误插件太旧,请更新到更新的版本,或将ANDROID_DAILY_OVERRIDE环境变量设置为

我查找了解链接中的解决方案: Android Studio 2.0 - 插件太旧了,请更新到更新版本,或者将ANDROID_DAILY_OVERRIDE环境变量设置为 Changed build.gradle(Project)classpath和gradle-wrapper.properties ,但现在项目构建正常但不运行,显示的错误是" 此版本的Android Studio与使用的Gradle插件不兼容.请尝试禁用即时运行. " 无法找到相同的解决方案.我是初学者,任何帮助将不胜感激.

我的app/build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 'Google Inc.:Google APIs:23'
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.timercheck"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.+'
    compile 'com.android.support:design:23.+'
}
Run Code Online (Sandbox Code Playgroud)

我的build.gradle(项目)

    // Top-level build file where you can add configuration options common …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio-2.0

2
推荐指数
1
解决办法
9249
查看次数

标签 统计

android ×1

android-studio-2.0 ×1

gradle ×1