禁用 Instant Run Android Studio 2.2 Preview 5 [英] Disable Instant Run Android Studio 2.2 Preview 5

查看:33
本文介绍了禁用 Instant Run Android Studio 2.2 Preview 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法禁用我的 Instant Run ,我想禁用它,因为我面临着像 SugarORM 这样的库的不同类型的问题,这就是我在做什么.

I am Unable to disable my Instant Run , and i want to disable it because i am facing different kind of problems with Libraries like SugarORM , Here is what i am doing.

文件 -> 其他设置 -> 默认设置

File -> Other Settings -> Default Settings

没有Instant Run选项!!!

instant run 在哪里,以及如何在 MAC/windows 中禁用它

Where is instant run , and how can i disable it in MAC/windows

推荐答案

我和 SugarORM 库有同样的问题.

I had the same exact isuue with SugarORM lib.

这是我所做的:(我会给你两种方法来实现特定项目的禁用,第二个是整个android工作室的禁用):

here what I did : (I'll give you two ways to achive that one disable for specefic project, and second for whole android studio):

  1. 如果您只想为不兼容的项目禁用即时运行(即带有 SugarORM 库的项目)
  1. if you want to disable instant-run ONLY for the project that is not compatible (i.e the one with SugarORM lib)

在你的项目根目录打开 gradle-->gradle-wrapper.properties 然后改变值distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

on root of your projct open gradle-->gradle-wrapper.properties then change the value distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

和在您的项目 build.gradle 上更改值

and on your project build.gradle change the value

classpath 'com.android.tools.build:gradle:2.2.3'

  1. 如果您想为所有项目(跨 Android Studio)禁用即时运行

在旧版本的即时运行的 AS 设置中是

in older version of AS settings for instant run is

File -> Other Settings -> Default Settings ->Build, Execution,Deployment

在最新版本的 AS 中,即时运行设置在首选项中

In most recent version of AS, instant run settings is in Preference

这篇关于禁用 Instant Run Android Studio 2.2 Preview 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆