Android Studio 2.3即时运行无法正常工作 [英] android studio 2.3 instant run not working
问题描述
我已将android studio从2.2更新到2.3,然后我发现即时运行无法正常工作.
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.
立即运行应再次运行
这篇关于Android Studio 2.3即时运行无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!