APK-Installer icon indicating copy to clipboard operation
APK-Installer copied to clipboard

大佬,当安装包因为签名不一致安装失败时,可以增加一个选项“卸载并重新安装”吗

Open CandyTek opened this issue 2 years ago • 2 comments

Describe your feature request

当安装包因为签名不一致安装失败时,增加一个选项吗“卸载并重新安装”。

How important is this to you?

Important

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

CandyTek avatar Oct 12 '23 12:10 CandyTek

额,实际上我无法知道是什么原因导致的安装失败。。。

wherewhere avatar Oct 12 '23 13:10 wherewhere

可以的,当手机上安装了ABC应用时,假如我尝试使用adb安装签名不一致的ABC应用到手机时,命令会返回以下错误: adb: failed to install E:\Github\ScreenTTS\app\build\intermediates\apk\debug\app-debug.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.xiaoming.screentts signatures do not match previously installed version; ignoring!]

只要判断返回的结果是否包含有 signatures do not match previously installed version(签名与以前安装的版本不匹配)这段字符串就表明此次安装失败是因为签名导致的了。

CandyTek avatar Oct 15 '23 10:10 CandyTek