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

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

问题描述

如何在Android Studio 2.0预览中禁用即时运行.当我进入设置时,会看到它:

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..."

我使用的是Android Studio 2.0 Preview 9,但Android Studio 2.0 Preview 7中也存在此错误.

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

推荐答案

更新

在Android Studio 3.5及更高版本中

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.

我们删除了即时运行",并从 在Android Studio 3.5中建立一种称为Apply的更实用的方法 Changes.Apply Changes使用来自Android Oreo的特定于平台的API 以及更高的级别以确保可靠和一致的行为;不像即时 运行,应用更改不会修改您的APK.为了支持这些变化, 我们重新设计了整个部署流程,以改善部署 速度,还调整了运行和部署工具栏按钮 更精简的体验.

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.

现在,按照Android Studio 3.0的稳定可用版本

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

如果您需要关闭即时运行",请转到

If you need to turn off Instant Run, go to

文件→设置→构建,执行,部署→即时运行,并取消选中启用即时运行.

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

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