1. 程式人生 > >Android Studio 2.3版本 Run專案不能自動啟動APP的問題

Android Studio 2.3版本 Run專案不能自動啟動APP的問題

重點提示:
Android Studio 2.3.1版本已經解決了此問題!!!!!
Android Studio 2.3.1版本已經解決了此問題!!!!!
Android Studio 2.3.1版本已經解決了此問題!!!!!

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。

大概是說手機系統被廠商定製的問題,本以為真是我Flyme的問題,後來感覺是google的問題,因為之前的版本都可以即時執行,到2.3就不行了,google估計是想讓廠商都用原生的系統,在不斷的控制系統許可權。

解決方法:開啟設定—-搜尋’run’,顯示下圖介面——取消勾選Instant run;

這裡寫圖片描述

google太坑了!