Android Studio 2.3版本 Run項(xiàng)目不能自動(dòng)啟動(dòng)APP(即時(shí)運(yùn)行)問題

轉(zhuǎn)http://blog.csdn.net/lucasey/article/details/61071377

Android Studio 升級(jí)到2.3版本后 運(yùn)行項(xiàng)目后,只是安裝上了,而APP不能自動(dòng)打開;

看到官方解釋: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.

已知問題:某些設(shè)備制造商會(huì)阻止應(yīng)用在安裝到設(shè)備上后自動(dòng)啟動(dòng)。 使用Android Studio 2.3將應(yīng)用程式部署到物理設(shè)備時(shí),此限制會(huì)中斷“即時(shí)運(yùn)行”的預(yù)期行為,并導(dǎo)致以下錯(cuò)誤輸出:錯(cuò)誤:未找到; 沒有服務(wù)開始。 要避免此問題,請(qǐng)?jiān)谠O(shè)備的設(shè)置中使用模擬器或?yàn)槟膽?yīng)用啟用自動(dòng)啟動(dòng)。 每個(gè)設(shè)備的操作步驟不同,因此請(qǐng)檢查制造商提供的說明。 例如,一些受影響的Asus設(shè)備需要使用自動(dòng)啟動(dòng)管理器將應(yīng)用程序列入白名單。 要了解有關(guān)此問題的詳細(xì)信息,請(qǐng)參閱問題#235879。

參考

https://developer.android.com/studio/releases/index.html

https://code.google.com/p/android/issues/detail?id=235879

大概是說手機(jī)系統(tǒng)被廠商定制的問題,本以為真是我Flyme的問題,后來感覺是google的問題,因?yàn)橹暗陌姹径伎梢约磿r(shí)運(yùn)行,到2.3就不行了,google估計(jì)是想讓廠商都用原生的系統(tǒng),在不斷的控制系統(tǒng)權(quán)限。

解決方法:打開設(shè)置—-搜索’run’,顯示下圖界面——取消勾選Instant run;

google真的好坑!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容