码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2016-02-18 19:54:10      阅读:1017      评论:0      收藏:0      [点我收藏+]

标签:

将 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 ANDROID_DAILY_OVERRID

标签:

原文地址:http://www.cnblogs.com/ts-develpoer/p/5199055.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!