![](/img/trans.png)
[英]instant run not working and always restarting the whole app - android studio 2.3
[英]Android Studio 2.3 Update not opening app [Instant Run Service]
我最近将Android Studio更新为2.3。 当我点击即时运行按钮时,它会编译应用程序但不会在Android设备上打开应用程序。 在此之后即使“热插拔”未启用,它也会显示“无活动'应用'启动”。 知道我可能做错了什么。 我尝试创建一个新项目,但也存在此错误。
我收到以下错误:
Error while executing: am startservice
com.example/com.android.tools.fd.runtime.InstantRunService Starting
service: Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.example/com.android.tools.fd.runtime.InstantRunService }
Error: Not found; no service started.
这是与设备相关的错误。 有一个谷歌问题讨论:
https://code.google.com/p/android/issues/detail?id=235879
他们找到了一些解决方案:
华硕设备:您必须允许自动启动您想要立即运行的应用程序https://www.asus.com/support/faq/1013752
具有MIUI的设备:您必须禁用MIUI优化(请参阅stackoverflow中的其他答案) https://stackoverflow.com/a/42579815/1341576
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.