Android应用安装:未知失败(失败-未安装0) [英] Android app installation: Unknown failure (Failure - not installed for 0)

查看:3418
本文介绍了Android应用安装:未知失败(失败-未安装0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用程序可以在模拟器上正常运行,但无法在设备(小米Mi4)上启动应用程序。最初,我使用以下文本输入种子对话框:

Application works fine on emulator, but I can't launch application on my device (Xiaomi Mi4). At first i seed dialog with such text:

Installation failed with message Failed to establish session.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

但是在我同意后-我在日志中看到以下消息:

But after I agree - i see in log this message:

Launching app
$ adb install-multiple -r <....>
$ adb shell pm uninstall com.example.app.debug
Unknown failure (Failure - not installed for 0)
Error while Installing APKs

我已经多次重启设备并将其插入/拔出计算机,但是没有帮助。

I've rebooted device several times and plugged/unplugged it to computer, but nothing helped.

推荐答案

对于Redmi和Mi设备,请关闭MIUI优化并重新启动手机。

For Redmi and Mi devices turn off MIUI Optimization and reboot your phone.

设置>开发人员选项> MIUI优化

这篇关于Android应用安装:未知失败(失败-未安装0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆