AndroidStudio 中的坑Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDR

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AndroidStudio 中的坑Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDR相关的知识,希望对你有一定的参考价值。

将 build.gradle 中 的 classpath改为2.0.+

dependencies {
classpath ‘com.android.tools.build:gradle:2.0.+‘
然后出现错误
Warning:Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in /home/zhangsf/AndroidStudioProjects/SMSTest/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
Error:(1, 1) A problem occurred evaluating project ‘:app‘.
> Failed to apply plugin [id ‘com.android.application‘]
   > Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in /home/zhangsf/AndroidStudioProjects/SMSTest/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip

进入file-> settings-> gradle
将use local gradle distribution
gradle home :/home/zhangsf/android-studio/gradle/gradle-2.10

以上是关于AndroidStudio 中的坑Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDR的主要内容,如果未能解决你的问题,请参考以下文章

AndroidStudio3.0到3.1遇到的坑

Android升级gradle5的坑+Androidstudio3.4小彩蛋

Android升级gradle5的坑+Androidstudio3.4小彩蛋

记录Android Studio连接华为(nova)手机鸿蒙系统踩过的坑

记录Android Studio连接华为(nova)手机鸿蒙系统踩过的坑

记录NCNN Yolov5部署华为鸿蒙系统踩过的坑