您的位置:首页 > 移动开发

Android Studio 2.3版本 Run项目不能自动启动APP的问题

2017-03-11 20:35 405 查看
转载注明出处:http://blog.csdn.net/sange77/article/details/61427775

本文参考:http://blog.csdn.net/lucasey/article/details/61071377

重点提示:

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。

参考

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太坑了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android android studio
相关文章推荐