Android Studio 2.3 更新未打开应用程序 [Instant Run Service] [英] Android Studio 2.3 Update not opening app [Instant Run Service]

查看:32
本文介绍了Android Studio 2.3 更新未打开应用程序 [Instant Run Service]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将 Android Studio 更新到了 2.3.当我点击即时运行按钮时,它会编译应用程序,但不会在 Android 设备上打开应用程序.之后即使没有启用热插拔",它也会显示没有活动的‘应用’启动".知道我可能做错了什么.我尝试创建一个新项目,但其中也存在此错误.

I recently updated the Android Studio to 2.3. When I hit the instant run button, It compiles the app but doesn't open the app on the Android device. 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.

我收到以下错误:

 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.

推荐答案

更新后出现同样的错误.如前所述,有一个关于这个主题的公开讨论.到目前为止,唯一的解决方法是您实际上禁用 即时运行,这是唯一对我有用的方法.您可以在 Preferences ->构建、执行、部署 ->即时运行:

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. You can do so in 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.

这篇关于Android Studio 2.3 更新未打开应用程序 [Instant Run Service]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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