我已经将 android studio 从 2.2 更新到 2.3,然后我发现 Instant run 不工作。
执行时出错:am startservice com.example.codingmaster.testcc/com.android.tools.fd.runtime.InstantRunService 启动服务:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.codingmaster.testcc/com.android.tools.fd.runtime.InstantRunService } 错误:未找到;没有服务启动。
我也尝试重新安装 android studio 2.3 但没有用。
原文由 user6138207 发布,翻译遵循 CC BY-SA 4.0 许可协议
如果您正在运行带有 MIUI 的设备,请转到开发人员设置 > 打开 MIUI 优化并将其关闭。
然后您需要重新启动设备并重新编译代码。
Instant Run 应该会再次运行