android studio 2.3使用问题Error: Not found; no service started

    xiaoxiao2021-03-25  98

    报错:Error: Not found; no service started.

    问题描述:之前使用android2.2.x时,使用乐视1s进行代码调试OK,当as升级到2.3以后,调试运行时发现不能将程序运行起来了,直接报错为:

    .InstantRunService Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.xxx.xxx.constrain/com.android.tools.fd.runtime.InstantRunService } Error: Not found; no service started.

    在国内网站翻了一会没有找到靠谱的答案,就去了google,找到了许多,经过尝试以后发现,在as升级到2.3以后,需要为调试app在手机中设置自启动的权限。经过设置后完美解决了这个问题。

    乐视手机:

    打开设置界面->隐私授权->您已经允许n款应用自启->(找到你的那款app,设置允许自启动就好啦)

    google question

    https://code.google.com/p/android/issues/detail?id=235879
    转载请注明原文地址: https://ju.6miu.com/read-33702.html

    最新回复(0)