[英]Android Studio 2.3 Update not opening app [Instant Run Service]
I recently updated the Android Studio to 2.3. 我最近将Android Studio更新为2.3。 When I hit the instant run button, It compiles the app but doesn't open the app on the Android device.
当我点击即时运行按钮时,它会编译应用程序但不会在Android设备上打开应用程序。 Even 'Hot Swap' is not enabled after that, it shows "No active 'app' launch".
在此之后即使“热插拔”未启用,它也会显示“无活动'应用'启动”。 Any idea what I might be doing wrong.
知道我可能做错了什么。 I tried creating a new project, but this error exists in that also.
我尝试创建一个新项目,但也存在此错误。
I am getting below error: 我收到以下错误:
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.
Got the same error after updating. 更新后得到相同的错误。 As already noted, there's an open discussion on this topic.
如前所述,对此主题进行了公开讨论。 So far, the only work-around is that you actually disable
instant run
, that's the only thing that worked for me. 到目前为止,唯一的解决方法是你实际上禁用了
instant run
,这是唯一对我有用的东西。 You can do so in Preferences -> Build, Execution, Deployment -> Instant Run
: 您可以在
Preferences -> Build, Execution, Deployment -> Instant Run
:
Turn it off and run the app again and it's going to work. 关闭它并再次运行应用程序,它会工作。 That's the best we can do at this point.
这是我们现在能做的最好的事情。
This is a device related bug. 这是与设备相关的错误。 There is a google issue discussion:
有一个谷歌问题讨论:
https://code.google.com/p/android/issues/detail?id=235879 https://code.google.com/p/android/issues/detail?id=235879
They have found some solutions: 他们找到了一些解决方案:
Asus devices: you have to allow auto-start for apps you want to start with instant run https://www.asus.com/support/faq/1013752 华硕设备:您必须允许自动启动您想要立即运行的应用程序https://www.asus.com/support/faq/1013752
Devices with MIUI: you have to disable MIUI optimization (see other answer in stackoverflow) https://stackoverflow.com/a/42579815/1341576 具有MIUI的设备:您必须禁用MIUI优化(请参阅stackoverflow中的其他答案) https://stackoverflow.com/a/42579815/1341576
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.