android - 在 Android Studio 2.0 中即时运行(如何关闭)

标签 android android-studio settings android-instant-run instant-run

如何在 Android Studio 2.0 Preview 中禁用 Instant Run。当我转到设置时,我看到了它:

enter image description here

我无法从“启用即时运行...”中删除勾号

我使用的是 Android Studio 2.0 Preview 9,但这个错误也出现在 Android Studio 2.0 Preview 7 中。

最佳答案

更新

在 Android Studio 3.5 及更高版本中

现在 Instant Run 已被删除,它具有“Apply Changes”。见 official blog有关更改的更多信息。

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,

如需关闭 Instant Run,请前往

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

enter image description here

关于android - 在 Android Studio 2.0 中即时运行(如何关闭),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35168753/

相关文章:

android - gradle插件更新后生成的apk未签名

android-studio - 如何在单个 android studio 项目上进行协作?

c++ - 用户用于输入程序设置的文件约定

android - 使用 WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY 将 View 添加到窗口时,它没有获取触摸事件

android - API 级别 28 的编译错误

Android Room FOREIGN KEY 约束失败(代码 787)

android - 我的应用似乎停止了。我不知道我的错误

java - 在获取预报之前更新位置

java - 在java中将设置存储在对象数据类型的散列图中的替代方案?

settings - 在自有生产环境中访问 Meteor 设置