美文网首页
Failure [INSTALL_FAILED_ALREADY_

Failure [INSTALL_FAILED_ALREADY_

作者: Killshadow | 来源:发表于2018-03-28 21:52 被阅读0次

今天装一个软件,都没有装成功,每次都是出现这个错误,第一次装还能装进去,后来卸载后再装进去就出现这个错误,手机直接安装也出现错误,提示我已经安装了这个apk,猜测有残留文件没有删除,无法覆盖造成这种错误,于是看看有哪几种安装方式。

  adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
                               - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
                                 ('-s' means install on SD card instead of internal storage)
                                 ('--algo', '--key', and '--iv' mean the file is encrypted already)

最后试了,用adb install -r xxx.apk安装成功。

补充:

如果是遇到了non found device/emulated, 则可试试如下方法:

解决Win7下由于服务占用端口5037导致ADB连接失败的方法:
1、首先在任务管理器的服务里面找到LogsAndAlerts,右键跳转到进程,结束改进程
2、在PC的命令行里面执行:sc delete LogsAndAlerts

相关文章

网友评论

      本文标题:Failure [INSTALL_FAILED_ALREADY_

      本文链接:https://www.haomeiwen.com/subject/orxpcftx.html