Android Studio, gradle plugin is too old or set ANDROID_DAILY_OVERRIDE

时间:2021-01-29 00:23:25

早上打开Android Studio,忽然报了个错,说gradle plugin版本过低,让更新或者设置ANDROID_DAILY_OVERRIDE环境变量:

Android Studio, gradle plugin is too old or set ANDROID_DAILY_OVERRIDE

日志如下:

INFO - ls.idea.gradle.GradleSyncState - Sync with Gradle for project ‘advance’ failed: Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to “15d1beac634bce32a315b0ad7c3040f2104f6d3”

查看主gradle文件:

Android Studio, gradle plugin is too old or set ANDROID_DAILY_OVERRIDE

gradle版本为2.2.0-beta1,修改为2.2.+,如下图:

Android Studio, gradle plugin is too old or set ANDROID_DAILY_OVERRIDE

然后,就好了。