如何在 Android Studio 2.0 Preview 中禁用 Instant Run。当我转到设置时,我看到了它:
我无法从“启用即时运行...”中删除勾号
我使用的是 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.
关于android - 在 Android Studio 2.0 中即时运行(如何关闭),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35168753/