无法从另一台计算机使用 debug.keystore 进行部署

Can't deploy with debug.keystore from another machine

我已经从 android studio 切换到 xamarin 用于我已经在 google play 开发者控制台中配置的应用程序(游戏)。我已经将 debug.keystore 复制并粘贴到 C:\Users\my profile\AppData\Local\Xamarin\Mono for Android\ 并清理了解决方案(我在 visual studio 2015)。该解决方案构建良好,但该应用程序从未安装到我的 Genymotion 设备上。我看到以下内容:

Android application is debugging. The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = true).

Additionally, check Build->Configuration Manager to ensure this project is set to Deploy for this configuration.

当我恢复到旧的密钥库时,进行清理,build/deploy 它又可以工作了。我该如何解决这个问题?

我发现当密钥库发生变化时,您必须遵循不同的卸载过程。尝试通过应用程序管理器卸载该应用程序。根据您的 Android 版本,它通常位于设置 -> 应用程序 -> 应用程序管理器 -> 在列表中找到该应用程序,select 它,卸载。

出于某种原因,仅使用垃圾桶图标卸载应用程序似乎并没有删除代码签名信息。但是如果你使用应用程序管理器卸载,那将删除代码签名信息。然后您可以使用不同的密钥库进行构建和部署。