AS 2.3啓動APP報錯Not found; no service started

最近發現升級android studio 2.3 之後,運行APP的時候有些手機會報報錯 Not found; no service started. APP不自動啓動要手動去啓動,感覺每次調試都很麻煩,尤其剛開始運行App時半天不見反應,耽擱好久。具體報錯信息如下:

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

解決方法

方案一(推薦方法):

只要在手機權限設置找到你的那款app,設置允許自啓動就好啦

方案二:

大部分的做法是直接關閉InstantRun這個功能,但是不推薦這種做法,這樣會導致每次調試都會重新安裝APK。

前往 File -> Settings ->Build,Exceution,Deployment -> InstantRun 把Enable Instant Run ···· 的勾去掉就行了
操作

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章