相关疑难解决方法(0)

插件太旧,请更新到更新版本,或将ANDROID_DAILY_OVERRIDE环境变量设置为

今天我刚从Android SDK中导入了一个示例应用程序作为我项目中的模块(分析),当我尝试同步它时突然出现了这个gradle错误: Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE envrinment variable to...

这是我的app gradle文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.0"
    defaultConfig {
        applicationId "xxx.xxxxxx.xxxxx"
        versionCode 1
        versionName '1'
        minSdkVersion 9
        targetSdkVersion 22
        versionCode 1
        versionName '1'
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }


    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.google.android.gms:play-services:6.5.87'
    compile 'com.android.support:recyclerview-v7:21.0.0'
    compile 'com.android.support:cardview-v7:21.0.0'
    compile 'com.facebook.android:facebook-android-sdk:3.21.1'
    testCompile 'junit:junit:4.12'
    compile project(':volley') …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio android-gradle-plugin

175
推荐指数
7
解决办法
13万
查看次数

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
查看次数