简体   繁体   English

如何在 Android Studio 4.0 中禁用即时运行?

[英]How to disable Instant Run in Android Studio 4.0?

I updated to the new Android Studio version 4.0 and there's an irritating issue I am facing which我更新到新的 Android Studio 版本 4.0 并且我面临一个恼人的问题

I believe is a result of instant run (or whatever the new name of this feature is).我相信这是即时运行的结果(或者无论这个功能的新名称是什么)。 Basically on using the Android studio run/play button, the app does not launch on the device sometimes and erratically.基本上在使用 Android 工作室运行/播放按钮时,应用程序有时无法在设备上启动且不规律。 It always installs but sometimes fails to launch.它总是安装,但有时无法启动。

I have had similar issues in the past and simply disabled instant run, however, in Android Studio 4.0 I can't see any option anywhere to disable it.我过去遇到过类似的问题,只是禁用了即时运行,但是,在 Android Studio 4.0 中,我在任何地方都看不到任何禁用它的选项。 I read somewhere that the feature name is changed but searching for that name also didn't yield any results.我在某处读到功能名称已更改,但搜索该名称也没有产生任何结果。

How can I disable instant run in android studio 4.0?如何在 android studio 4.0 中禁用即时运行?

I've faced the same issue and disabling parallel run option in the edit configuration window solved the issue for me.我遇到了同样的问题,在编辑配置 window 中禁用并行运行选项为我解决了这个问题。

在此处输入图像描述

"Apply Changes" has been introduced in replacement of instant run. “应用更改”已被引入以替代即时运行。 Besides the Run green button in Android studio, there is apply change option in android studio 4.除了 Android studio 中的 Run 绿色按钮外,android studio 4 中还有 apply change 选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM