简体   繁体   English

Android:重新安装应用程序失败

[英]Android: app reinstall fails

I have uninstalled my app (debug version) with the options on my phone. 我已使用手机上的选项卸载了我的应用程序(调试版本)。 But if I reinstall it with another version (signed) I get an error message that it already exists. 但是,如果我使用另一个版本(签名)重新安装它,则会收到一条错误消息,提示它已经存在。 But I do not see a symbol in the phone. 但是我在电话里看不到任何符号。 I have to use adb uninstall. 我必须使用adb卸载。 This happens on different devices. 这发生在不同的设备上。

Is this normal behavior or is there something wrong with my app? 这是正常现象还是我的应用程序出了点问题?

If the signatures do not match, the old app must be uninstalled before another app with the same package name can be installed. 如果签名不匹配,则必须先卸载旧应用,然后才能安装具有相同程序包名称的另一个应用。 The old application can be uninstalled from command line (adb uninstall) or just using the normal Android UI (go the all applications view, long tap the application icon there and drag it into trashbox that should appear at the top). 可以从命令行(adb卸载)或仅使用常规Android UI卸载旧应用程序(转到所有应用程序视图,长按此处的应用程序图标并将其拖动到应显示在顶部的垃圾箱中)。

It is really very strange and wrong if you do not have your application icon at all. 如果您根本没有应用程序图标,那确实是非常奇怪和错误的。 Even if you do not supply one, the default icon (a green Android) should be used together with your application name. 即使您未提供任何图标,也应将默认图标(绿色的Android)与您的应用程序名称一起使用。 But maybe you are talking about the main desktop where the icon may not be installed by default. 但是也许您正在谈论的是默认情况下可能未安装该图标的主桌面。 You need to go to application list instead. 您需要转到应用程序列表。 For 4.1.0, the application list is opened with the button having six white dots in two rows, all surrounded by the circle, at the bottom centre. 对于4.1.0,将使用按钮打开应用程序列表,该按钮在底部中心具有两行六个白点,两行都被圆包围。

If you try to install a signed app with the same package name as the unsigned version, it will return an error saying that it cannot be done. 如果您尝试使用与未签名版本相同的程序包名称安装已签名的应用程序,它将返回一条错误消息,指出无法完成。 What you have to do is to check that the app really is uninstalled on your device before installing the new, signed version. 您需要做的是在安装新的签名版本之前,检查应用程序是否已在设备上真正卸载。

问题是我正在使用2个软件包

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM