use*_*595 13 android gradle android-studio android-gradle-plugin android-instant-run
我最近将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.
Run Code Online (Sandbox Code Playgroud)
Vuc*_*cko 11
更新后得到相同的错误.如前所述,对此主题进行了公开讨论.到目前为止,唯一的解决方法是你实际禁用 instant run,这是唯一对我有用的东西.你可以这样做Preferences -> Build, Execution, Deployment -> Instant Run:
关闭它并再次运行应用程序,它会工作.这是我们现在能做的最好的事情.
这是一个与设备相关的错误。谷歌有一个问题讨论:
https://code.google.com/p/android/issues/detail?id=235879
他们找到了一些解决方案:
华硕设备:您必须允许您想要立即运行的应用程序自动启动https://www.asus.com/support/faq/1013752
具有 MIUI 的设备:您必须禁用 MIUI 优化(请参阅 stackoverflow 中的其他答案)/sf/answers/2980587081/
| 归档时间: |
|
| 查看次数: |
7474 次 |
| 最近记录: |