android studio 2.3 即时运行不工作 [英] android studio 2.3 instant run not working

查看:32
本文介绍了android studio 2.3 即时运行不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 android studio 从 2.2 更新到 2.3,然后我发现 Instant run 不起作用.

I have updated android studio from 2.2 to 2.3,then I found Instant run not working.

执行时出错: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 }错误:未找到;没有启动服务.

Error while executing: am startservice com.example.codingmaster.testcc/com.android.tools.fd.runtime.InstantRunService Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.codingmaster.testcc/com.android.tools.fd.runtime.InstantRunService } Error: Not found; no service started.

我也尝试重新安装 android studio 2.3 但不起作用.

I also try reinstall android studio 2.3 but not work.

推荐答案

如果您正在运行带有 MIUI 的设备,请转到开发者设置 > 打开 MIUI 优化并将其关闭.

In case you are running a device with MIUI, go to Developer Settings > Turn on MIUI optimization and turn it off.

然后您需要重新启动设备并重新编译代码.

You will then need to restart your device and recompile the code.

Instant Run 应该会再次运行

Instant Run should then work again

这篇关于android studio 2.3 即时运行不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆