在 Android Studio 2.0 中即时运行(如何关闭) [英] Instant run in Android Studio 2.0 (how to turn off)

查看:40
本文介绍了在 Android Studio 2.0 中即时运行(如何关闭)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Android Studio 2.0 预览版中禁用 Instant Run.当我进入设置时,我看到了:

并且我无法从启用即时运行..."中删除勾号

我使用 Android Studio 2.0 Preview 9,但此错误也出现在 Android Studio 2.0 Preview 7 中.

解决方案

UPDATE

Android Studio 3.5 及以上版本

现在 Instant Run 已删除,它具有应用更改".请参阅

How to disable Instant Run in Android Studio 2.0 Preview. When I go to the settings I see it:

and I can not remove the tick from "Enable Instant Run..."

I use Android Studio 2.0 Preview 9, but this error was present in Android Studio 2.0 Preview 7 also.

解决方案

UPDATE

In Android Studio Version 3.5 and Above

Now Instant Run is removed, It has "Apply Changes". See official blog for more about the change.

we removed Instant Run and re-architectured and implemented from the ground-up a more practical approach in Android Studio 3.5 called Apply Changes.Apply Changes uses platform-specific APIs from Android Oreo and higher to ensure reliable and consistent behavior; unlike Instant Run, Apply Changes does not modify your APK. To support the changes, we re-architected the entire deployment pipeline to improve deployment speed, and also tweaked the run and deployment toolbar buttons for a more streamlined experience.

Now, As per stable available version 3.0 of Android studio,

If you need to turn off Instant Run, go to

File → Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run.

这篇关于在 Android Studio 2.0 中即时运行(如何关闭)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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