Android 新旧 PC 之间的签名密钥差异

Android Signature key differences between Old and New PC

An existing package by the same name with a conflicting signature is already installed

几年前我在一台旧 PC 上开发了一个内部应用程序并部署了它。现在我有了一台新电脑,我曾经在 upgrades 上工作,但是当我尝试 upgrade android devices 上的应用程序时,我收到了上述错误消息。

如果我uninstall旧版本,我可以install the upgrade。但不幸的是,我无法在 remote devicesuninstallreinstall

我认为如果我将升级复制回旧 PC 和 regenerate 一个 APK,那可能会起作用,但是 有什么方法可以复制 signature keys 从旧 PC 到新 PC 并进行安装?

会有帮助

自动生成的密钥称为调试key/certificate

您应该生成一个新密钥,只需将其复制到您的两台设备即可。唯一的缺点是您的构建过程更长,因为您需要手动步骤。

另一种选择是从其中一个系统复制调试密钥。

您将在 Linux 的主目录和 Windows

的用户目录中的文件夹名称 .android 中找到密钥

提示:将应用程序推向市场后,永远不要ose 证书。

在像 os 这样的 Unix 中,调试键默认位于 ~/.android/debug.keystore