This version of android studio is incompatible with the gradle version used.Try disabling the instant run解决办法
2016-07-24 10:32
916 查看
今天打开android studio又碰到一个奇怪的问题:This version of android studio is incompatible with the gradle version used.Try disabling the instant run
android studio和gradle版本不匹配,我的android studio刚更新完没多久,应该就是gradle的问题。
果然在stackoverflow上找到了答案:
在这里面这里:distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip //这是以前的版本,最新的参考这里:http://services.gradle.org/distributions
我设置成gradle-2.11-all还是出错,设置成最新的就好啦。。。。。
android studio和gradle版本不匹配,我的android studio刚更新完没多久,应该就是gradle的问题。
果然在stackoverflow上找到了答案:
You can use normal build run rather than instant run Check first Settings/Preferneces > Build, Execution, Deployment option > Instant Run and uncheck all the three boxes. STEP1 (Upgrading gradle services url): Project > Gradle > Wrapper > gradle-wrapper.properties changed url of distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip to distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip STEP 2 (Delete you build folder in project): When you run project, build folder will be crated automatically STEP 3: Go to BUILD option in menu> Clean the project, Build the project It should work without instant run
在这里面这里:distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip //这是以前的版本,最新的参考这里:http://services.gradle.org/distributions
我设置成gradle-2.11-all还是出错,设置成最新的就好啦。。。。。
相关文章推荐
- Android自定义圆形图片控件CircleImageView
- [置顶] Android 6.0特性
- Android的文件系统结构
- Android-指定时间定时触发方法
- Android阶段学习笔记 (常见错误之R文件丢失)
- Android开发学习之路-自定义控件(天气趋势折线图)
- Android系统应用---Notification之一:Notification概述及使用
- 侧滑菜单的一点小小的总结
- android之利用surfaceView实现自定义水印相机
- Android中自动跳转到系统设置界面
- [置顶] Android中ListView下拉刷新上拉加载更多效果实现
- Android Studio报错:libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
- Android的Window和WindowManager
- Android高效加载图片和缓存策略LRU,DiskLRU
- 【Android开发经验】ViewHolder到底用什么修饰?static?final?static final?
- Android多线程操作——线程池管理综述
- 搭建Android Studio2.1配HTC One M8做测试环境
- Android多线程操作——线程池管理综述
- TensorFlow安装教程与Android Camera Demo示例(Ubuntu Trusty 14.04 LTS)
- 关于ubuntu上android studio的theme editor 不显示的问题