小米手机运行失败

2016-11-15遇到的一点小问题
今天用小米手机debug运行,无法安装,提示如下

Installation failed with message INSTALL_CANCELED_BY_USER.
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?

小米手机运行失败_第1张图片
INSTALL_CANCELED_BY_USER

很坑,重启卸载旧版都没有。后来网上一找,有人也出现过哈,早知道先搜索了。
这边写得很详细,我的手机确实刚升级MIUI版本,不过这边写的也不全对,我的开发者模式和USB调试都有开着,还是不行。再试下,原来只需要关掉重新打开开发者模式就行。
记录一下。

2017-03-08遇到的一点小问题
这次把MIUI升到8了,顺便将手机重启到恢复模式(Recovery)清除数据,不过运行又出了点问题,安装失败,提示:

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?

小米手机运行失败_第2张图片
MIUI8无法调试

网上搜了下,原来是MIUI默认在 开发者选项最底部开启了 启用MIUI优化,点击关闭,重启手机就可以了。更新记录下。

小米手机运行失败_第3张图片
启用MIUI优化

2017-03-10遇到的一点小问题
模拟器运行失败
需要测一下Android4.1的,不过手机被刷到4.4,只好用模拟器了。不过因为第三方so文件。所以提示:

Installation failed with message INSTALL_FAILED_CPU_ABI_INCOMPATIBLE.
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?

小米手机运行失败_第4张图片
INSTALL_FAILED_CPU_ABI_INCOMPATIBLE

老问题了,找一下以前下载的 ARM_Translation_Marshmallow.zip文件,拖拽过去安装试一下,却提示安装失败。以为是版本过低,又网上找了个 新版本的,当然,我也不确定是不是新版的。还是提示安装失败。

小米手机运行失败_第5张图片
安装失败

再找找是不是别的原因,然后有看到不能放在 中文路径里。换个目录存放,再拖拽过去,可以了,成功安装。

小米手机运行失败_第6张图片
安装成功

2017-03-13遇到的一点小问题
一个该淘汰的联想测试机,将系统从4.1刷到4.4,运行时提示的,

Installation failed with message INSTALL_FAILED_INSUFFICIENT_STORAGE.
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?
小米手机运行失败_第7张图片
INSTALL_FAILED_INSUFFICIENT_STORAGE

好像真是网上说的那样,存储空间不足,无法安装。还好,卸载掉几个就能运行。

2017-05-02 遇到的一点小问题
今天米2S又出现第一个问题,换别的手机则出现:

Installation failed with message INSTALL_FAILED_INVALID_APK.
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?
小米手机运行失败_第8张图片
INSTALL_FAILED_INVALID_APK

一直运行不了,网上找了半天也解决不了。正准备放弃,突然发现app的build.gradle里不知道什么时候,不小心把applicationId改成p。哭。。。折腾大半天。。。
还好,改回去就正常了。

你可能感兴趣的:(小米手机运行失败)