美文网首页
androidstudio2.3升级,运行项目不能启动,导致in

androidstudio2.3升级,运行项目不能启动,导致in

作者: Jarly_Sun | 来源:发表于2017-03-15 15:29 被阅读240次

    升级androidstudio2.3后,运行项目,一切都是正常的,静静等待项目打开。然而,打脸了,项目正常安装了,但是不能正常的启动,这是什么鬼,又是2.3版本的新坑吗?日志信息如下,Error while executing: am startservice com.xxx.xxx/com.android.tools.fd.runtime.InstantRunService

    Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.xxx.xxx/com.android.tools.fd.runtime.InstantRunService }

    Error: Not found; no service started.

    待着疑问,谷歌查了下资料。这是因为android手机生产商对自启动进行管理,因此需要我们自己对应用打开自启动权限,我用的魅族pro6测试机,在手机管家-权限管理-应用管理将项目的app设置成保持后台运行即可,这样就可以愉快的体验2.3 instant run 了。

    可以参考:https://github.com/openstf/stf/issues/407#issuecomment-247852532

    相关文章

      网友评论

          本文标题:androidstudio2.3升级,运行项目不能启动,导致in

          本文链接:https://www.haomeiwen.com/subject/ftglnttx.html