Android Studio Instant Run 未启用?

标签 android android-studio-2.0 android-instant-run

Instant Run 是一项新功能,旨在减少运行和调试应用程序的时间。 我拥有启用即时运行所需的所有配置,但它未在 Android Studio 上启用。下面是我的配置。

1. Android Studio 2.1
2. 'com.android.tools.build:gradle:2.1.0'
3. minSdkVersion 15
4. Settings->Build, Execution, Deployment > Instant Run = "Enable Instant Run..."
5. Run ->device is  Android version 4.4.4

然后 Instant Run 未启用。 enter image description here

但是当我在 Android 5.1.1 版设备上运行时,Instant Run 已启用。 enter image description here

请建议,如果我错过了一些其他配置来为 Android 4.4.4 设备启用即时运行。

最佳答案

当您第一次运行时,不需要 Instant Run,因为 apk 将在所选设备中首次安装。从第二次开始,如果您选择相同的设备来部署您的更改,那么即时运行将自动从 Android Studio 2.0 和 Gradle 2.0 版启用。

请注意:您需要在 Debug模式下运行。

更清晰的了解可以访问this链接

关于Android Studio Instant Run 未启用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37102728/

相关文章:

android - 与依赖项 'com.android.support:support-annotations' 冲突。应用程序 (23.3.0) 和测试应用程序 (23.1.1) 的已解决版本不同

android-studio - Android Studio Instant Run 总是重启应用程序

发布版本后不显示 Android 图像,或者如果我即时运行关闭

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

android - 在 Android 4.4 Web View 中将 Web View 转换为图像不起作用

android - 为 android wear 检测 isRound 或 isSquare

Android - Parcelable 类中的上下文

未找到 Android Studio Gradle DSL 方法 : compile() while adding slf4android dependency

android - 模拟器在 Android Studio 2.0 中不工作

升级外接主板的安卓应用