參考: http://blog.csdn.net/lucasey/article/details/61071377
Android Studio 升級到2.3版本后 運行項目后,只是安裝上了,而APP不能自動打開;
看到官方解釋:Known issue: Some device manufacturers block apps from automatically launching after being installed on the device. When deploying your app to a physical device using Android Studio 2.3, this restriction breaks the intended behavior of Instant Run and causes the following error output: Error: Not found; no service started. To avoid this issue, either use the emulator or enable automatic launching for your app in your device’s settings. The proceedure for doing this is different for each device, so check the instructions provided by the manufacturer. For example, some affected Asus devices need to whitelist apps using the Auto-start Manager. To learn more about this issue, see Issue #235879.
已知問題:某些設備制造商會阻止應用在安裝到設備上后自動啟動。 使用Android Studio 2.3將應用程式部署到物理設備時,此限制會中斷“即時運行”的預期行為,並導致以下錯誤輸出:錯誤:未找到; 沒有服務開始。 要避免此問題,請在設備的設置中使用模擬器或為您的應用啟用自動啟動。 每個設備的操作步驟不同,因此請檢查制造商提供的說明。 例如,一些受影響的Asus設備需要使用自動啟動管理器將應用程序列入白名單。 要了解有關此問題的詳細信息,請參閱問題#235879。
參考
https://developer.android.com/studio/releases/index.html
https://code.google.com/p/android/issues/detail?id=235879
大概是說手機系統被廠商定制的問題,本以為真是我Flyme的問題,后來感覺是google的問題,因為之前的版本都可以即時運行,到2.3就不行了,google估計是想讓廠商都用原生的系統,在不斷的控制系統權限。
解決方法:打開設置—-搜索’run’,顯示下圖界面——取消勾選Instant run;
google太坑了!