Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CandyTek opened this issue Oct 12, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@CandyTek
Copy link

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 CandyTek added the enhancement New feature or request label Oct 12, 2023
@wherewhere
Copy link
Member

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

@CandyTek
Copy link
Author

可以的,当手机上安装了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(签名与以前安装的版本不匹配)这段字符串就表明此次安装失败是因为签名导致的了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants