今天装一个软件,都没有装成功,每次都是出现这个错误,第一次装还能装进去,后来卸载后再装进去就出现这个错误,手机直接安装也出现错误,提示我已经安装了这个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
网友评论