This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Ru
来源:互联网 发布:汕头淘宝运营培训班 编辑:程序博客网 时间:2024/04/25 19:06
用AS导入网易云信SDK时,编译出现“This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)”这个错误。
解决办法:
参考:http://blog.csdn.net/sinat_15417921/article/details/51907728
step1:
禁用Instant Run,在Settings/Preferneces > Build, Execution, Deployment option > Instant Run 中,取消所有的选中项
更新gradle services 的url:在project目录下的 gradle>wrapper>gradle-wrapper.properties中将
distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
更新为:
distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip
step3:
删除project下的build文件夹
clean项目,重新编译跑程序
个人补充:
在step2中,更新到gradle-2.11-all.zip不是无缘无故的改个编号就行,首先从上面的下载地址上可以看出要下载的离线包是gradle-2.11-all.zip,gradle在创建时需要联网,不然的话会失败。
所以下面介绍一种使用gradle离线包的方法:
step1:我们把离线包下下来,放到正确的位置。
各操作系统的gradle下载位置:
> windows:C:\Users\Reeves\.gradle\wrapper\dists
> linux:~/.gradle/wrapper/dists/
> mac:~/.gradle/wrapper/dists/
我是windows系统,dists目录图如下:
**优点:**不用每次新建gradle项目都配置一遍
**缺点:**gradle存放目录在系统目录下,重装系统可能要重新配置
- This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Ru
- this version of Android Studio is incompatible with the Gradle Plugin used. try disabling Instant Ru
- This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Ru
- This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Ru
- This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant R
- This version of android studio is incompatible with the gradle version used.Try disabling the instan
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Studio运行出现:This version of Android Studio is incompatible with the Gradle Plugin used. Try disablin
- Error running app: This version of Android Studio is incompatible with Gradle Plugin used.Try disabl
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try d
- Apache+PHP解决中文乱码问题
- day12_EL与tag
- 验证码技术——显示随机数图片
- PHP实现获取文件的后缀名
- Linux下重命名文件或文件夹(mv命令与rename命令)
- This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Ru
- 应用定界符输出用户登录表单
- [leetCode刷题笔记]2017.04.11
- 树莓派3 如何配置静态IP
- PHP中使用转义字符“\”对字符串进行转义
- 史上最简单的 Spring MVC 教程(七)
- Einstein 方程的广义调和形式
- PHP自动转义和还原字符串
- Nginx