Installation error: Unknown failure 的解决

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

使用 adb kill-serveradb start-server 优化

重启计算机spa

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

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

图片描述

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

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.
相关文章
相关标签/搜索