首页 > 代码库 > Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment

Apparently, beta releases of the Gradle for Android plugin expire. AFAIK, that is not documented behavior. Right now, the only way that I know of to find out what the latest beta release is would be by monitoring http://tools.android.com/tech-docs/new-build-system

找到最新的版本号的gradle替换就可以。

    dependencies {
//        classpath ‘com.android.tools.build:gradle:2.0.0-alpha1‘
        classpath ‘com.android.tools.build:gradle:2.0.0-alpha3‘
//        classpath ‘com.android.tools.build:gradle:1.3‘
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment