Installation error: Unknown failure 的解决

今天在开发时用Android studio debug方式往真机上安装app时爆出了Installation error: Unknown failure 后来试了很多种网上说的方法尝试解决,包括:

使用 adb kill-serveradb start-server

重启计算机

然后我甚至重装了SDK和Android studio 都无济于事

后来看到网上有人说关闭小米的MIUI优化就可以了,试了试果然行了! 如果哪位是用小米真机调试的也出了这个错误可以试试,这个不大不小的坑害我填了一下午,浪费时间,而且很诡异的是前一阵我调试时这个MIUI优化一直开着,也没出问题,就是今天我把Android studio升级到了2.3以后问题就出现了,不知道具体是什么情况

《Installation error: Unknown failure 的解决》

另外我看还爆出了另一个警告,不知道和这个有无关系,先记录一下

16:38    Instant Run detected that you are running on a target device that has a work profile or multiple user accounts.
        Launching the app under a work profile or another user account on the target device will result in a crash.
        Learn more about how to run your app under a work profile.
    原文作者:since1986
    原文地址: https://segmentfault.com/a/1190000008559635
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞