Android Studio Run App 不能自动启动

studio升级到2.3以后新建的项目,点击run app在手机上不能自动运行(已经下载好),但是在模拟器上是可以自动运行的。网上查询说是有些手机厂商禁止了自动运行这个功能,然后才出现了这种问题。要在手机上打开自动启动这个功能,但是我的魅蓝note5没找到怎样打开,所以我把instant run关掉即可。

/*************以下是转载内容*************/

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;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值