Android Studio错误处理Plugin is too old, please update to a more recent version

时间:2022-11-15 00:22:45

之前项目好好的,结果突然就报错了-gradle升级了

Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "aed79d567e57792ed352e708d2b7ca891ff897c6"

<a href="fixGradleElements">Fix plugin version and sync project</a><br><a href="openFile:E:\xxx\xxx\xxxx\xxx\app\build.gradle">Open File</a>

Android Studio错误处理Plugin is too old, please update to a more recent version

Android Studio错误处理Plugin is too old, please update to a more recent version

classpath 'com.android.tools.build:gradle:2.0.0-alpha1'  //项目里的
(1)、classpath 'com.android.tools.build:gradle:2.0.+'        //改成这个

(2)、去这个网址看最新的插件版本https://jcenter.bintray.com/com/android/tools/build/gradle/

把gradle的版本改成那个最新的就行了

完了之后还需要更新sdk,studio会提示的