This version of android studio is incompatible with the gradle version used.Try disabling the instant run解决办法

今天打开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上找到了答案:

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还是出错,设置成最新的就好啦。。。。。

时间: 2024-11-05 22:46:37

This version of android studio is incompatible with the gradle version used.Try disabling the instant run解决办法的相关文章

This version of android studio is incompatible with the gradle version used.Try disabling the instant run

编译Android项目时提示: File → Settings → Preferences dialog → Build → Execution → Deployment → Instant Run → Update Project 把Instant勾选取消 先clean一下

Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run.

转自:http://blog.csdn.net/qq_15807167/article/details/51984920 参考:http://stackoverflow.com/questions/35202541/this-version-of-android-studio-is-incompatible-with-the-gradle-version-used-try step1: 禁用Instant Run,在Settings/Preferneces > Build, Execution,

关于mac android studio 与svn 解除关联后 无法再次share (Subversion) 的解决办法

Android studio 把工程share 到 svn 上面,可是一不小心忘了 ignore files 的设置,结果没办法,把svn 上的删掉再重新share 一次,先接触本地代码与svn 的关联,两种方法,(1)android sutio 的设置按钮,找到version control 大类,用鼠标点击这一栏,旁变白色区域,有个project 最右边对应Subversion,白色区域左下角有个减号,点击也可以.(2)从android 切换到project目录,在.idea 文件夹下有个v

Android Studio:libpng warning: iCCP: Not recognizing known sRGB profile that has been edited解决办法

把以前的eclipse的项目导入Android Studio中,Build项目的时候,出现了一堆错误. 如下: 1 AAPT err(Facade for 1944774242): ERROR: 9-patch image D:\workspace_training\MobileSafe\res\drawable-hdpi\call_locate_blue.9.png malformed. 2 AAPT err(Facade for 1944774242): Frame pixels must

the rendering library is more recent than your version of android studio

最近更新了自己Android Studio中的SDK到最新版本,AS的一部分配置修改了. 然后 在打开布局文件的时候 会出现 渲染错误 Rendering problem the rendering library is more recent than your version of android studio 提示:如上所示.这个是由于更新了SDK之后渲染版本自动改变了,当前工程的配置的版本与渲染设置的版本不同. 解决办法如下. 打开任意布局文件,切换到Design视图 点击如图所示的图标

android studio更新后出现的Gradle sync failed: Unknown host等gradle问题解决办法

首先打开android studio项目 找到项目目录gradle\wrapper\gradle-wrapper.properties这个文件 内容如下 distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distszipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/distsdistributionUrl=http\://services.gradle.org/distributio

Android Studio 新手常见错误:Gradle DSL method not found: 'runProguard()'

在Android Studio上执行Github上的某Android开源项目,提示报错: Error:(20, 0) Gradle DSL method not found: 'runProguard()' 请教度娘后.须要将app下的build.gradle文件里: buildTypes { release { runProguard false // 已经被废弃而且停止使用了 //...... } } 替换为例如以下就可以: buildTypes { release { minifyEnab

Android Studio下项目构建的Gradle配置及打包应用变体

Gradle简介 ??Gradle是一个自动化构建工具,采用Groovy的Domain Specific Language(领域特定语言)来描述和控制构建逻辑.具有语法简洁.可读性强.配置灵活等特点.基于Intellij IDEA社区版本开发的Android Studio天生支持Gradle构建程序.Groovy是一种基于JVM的敏捷开发语言,结合了Phthon.Ruby和Smalltalk的许多强大特性.同时,Groovy代码既能够与java代码很好地结合,也能够用于扩展现有的代码. Grad

Android Studio 新手常见错误:Gradle DSL method not found: 'runProguard()'

在Android Studio上运行Github上的某Android开源项目,提示报错: Error:(20, 0) Gradle DSL method not found: 'runProguard()' 请教度娘后,需要将app下的build.gradle文件中: buildTypes { release { runProguard false // 已经被废弃并且停止使用了 //...... } } 替换为如下即可: buildTypes { release { minifyEnabled