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

时间:2023-01-28 00:22:21
Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “*****”

 的一种解决方案:

 

修改工程依赖的build.gradle文件如下:

 

dependencies {
    classpath 'com.android.tools.build:gradle:+'
    ....
}

 

重新编译即可

这时候控制台应该会有警告,让更新gradle版本,进入gradle/wrapper/gradle-wrapper.properties.

 

 

#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

红色版本号修改为警告让改的版本,编译即可