Android gradle plugin和 Gradle版本关系-Gradle version 1.10 is required. Current version is 2.0

Stella981
• 阅读 591

转载请标明出处:http://blog.csdn.net/xx326664162/article/details/51087827 文章出自:薛瑄的博客

你也可以查看我的其他同类文章,也会让你有一定的收货!

Android gradle plugin和 Gradle版本关系需要正确匹配,如果不正确,可能出现下面这个错误。

Android gradle plugin和 Gradle版本关系如下(持续更新):

Android Gradle Plugin

Requires Gradle

1.0.0 - 1.1.3

2.2.1 - 2.3

1.2.0 - 1.3.1

2.2.1 - 2.9

1.5.0

2.2.1+

2.0.0-2.1.2

2.10 - 2.13

2.1.3+

2.14.1+

2.3.0+

3.3+

问题:

Gradle version 1.10 is required. Current version is 2.0

解决:

Android gradle plugin的版本需要和 Gradle的版本相匹配,具体对应版本查看:

Android Studio and the Android Gradle Plugin 
Studio 1.* or 2.* works with Gradle Plugin 1., and 2.

Newer versions of the Gradle plugin may require newer versions of Studio to enable the new features in the IDE, but the project should open in older versions of Studio, and build from there (since Gradle does the build). We will be very careful about this.

We will determine later our compatibility story between Studio 2.x and Gradle Plugin 1.x and between Studio 1.x and Gradle Plugin 2.x

We will make every effort to keep compatibility where possible, and to provide good Quick Assist to help with migration where applicable.

Android gradle plugin的版本在这个路径中修改:app\build.gradle

Android gradle plugin和 Gradle版本关系-Gradle version 1.10 is required. Current version is 2.0

Gradle的版本在这个路径中修改 :app\gradle\wrapper\gradle-wrapper.properties

Android gradle plugin和 Gradle版本关系-Gradle version 1.10 is required. Current version is 2.0

参考: 
http://ask.android-studio.org/?/question/311 
https://developer.android.com/studio/releases/gradle-plugin.html#updating-gradle 
http://tools.android.com/tech-docs/new-build-system/version-compatibility

点赞
收藏
评论区
推荐文章
Wesley13 Wesley13
3年前
java多线程(二)锁对象
转载请注明出处:http://blog.csdn.net/xingjiarong/article/details/47679007(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fxingjiarong%2Farticle%2Fdetails%2F4
Wesley13 Wesley13
3年前
Java之——实现微信小程序加密数据解密算法
转载请注明出处:http://blog.csdn.net/l1028386804/article/details/79450115(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fl1028386804%2Farticle%2Fdetails%2F79450
Stella981 Stella981
3年前
Linux 如何使用gdb 查看core堆栈信息
转载:http://blog.csdn.net/mergerly/article/details/41994207(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fmergerly%2Farticle%2Fdetails%2F41994207)core
Wesley13 Wesley13
3年前
Android 切换系统语言源码分析(上)
转载请标明出处:http://blog.csdn.net/u011974987/article/details/50793343(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fu011974987%2Farticle%2Fdetails%2F5079
Wesley13 Wesley13
3年前
ubuntu 11.10 安装systemtap
转载:http://blog.csdn.net/ustc\_dylan/article/details/7079876(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fustc_dylan%2Farticle%2Fdetails%2F7079876)
Stella981 Stella981
3年前
Linux下安装rabbitmq
原文地址,转载请注明出处: http://blog.csdn.net/qq\_34021712/article/details/72567786(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fqq_34021712%2Farticle%2Fdetails%
Stella981 Stella981
3年前
Eclipse背景颜色修改
本文属转载文章,原出处请查看下方原文:http://blog.csdn.net/songxingfeng/article/details/7790582(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fsongxingfeng%2Farticle%2F
Stella981 Stella981
3年前
Lucene学习总结之四:Lucene索引过程分析(4)
【转载http://blog.csdn.net/forfuture1978/article/details/5279200(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fforfuture1978%2Farticle%2Fdetails%2F
Wesley13 Wesley13
3年前
Android 框架炼成 教你如何写组件间通信框架EventBus
转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/41096639(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Flmj623565791%2Farticle%2Fdetails%2F41
Wesley13 Wesley13
3年前
Android在Service里播放与控制音乐
文章原创,转载请注明出处:http://blog.csdn.net/feifei454498130/article/details/9306631(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Ffeifei454498130%2Farticle%2Fdet