简体   繁体   English

在安装生产版本时安装应用程序的调试版本

[英]Installing Debug version of app while Production version is installed

I have created an app through Eclipse and have uploaded it in the app store. 我已经通过Eclipse创建了一个应用程序,并将其上传到应用程序商店中。 I have the app installed in my phone. 我的手机中安装了该应用程序。

Now I am working on an update. 现在,我正在进行更新。 I am having trouble installing the app because it tells me the signature is different. 我无法安装该应用程序,因为它告诉我签名不同。

I know that this is due to using different keystores to sign each. 我知道这是由于使用不同的密钥库对每个密钥库进行签名。 But I dont want to uninstall the app 'cause I want to make sure that the app is able to go to the normal app update process. 但是我不想卸载该应用程序,因为我想确保该应用程序能够进入正常的应用程序更新过程。

Is there a way to go around this? 有办法解决这个问题吗?

There are a few possible solutions to this for you: 有几种可能的解决方案为您:

  1. Change the package name to some thing different like com.example.myapp.debug and remove that from the package name before publishing (this would have to be in the manifest) 将软件包名称更改为com.example.myapp.debug之类的其他名称,然后在发布之前将其从软件包名称中删除(这必须在清单中)
  2. Yes you could uninstall the app, do debug work, then uninstall the debug and reinstall from app store, push the update and wait for Google Play to register that version. 是的,您可以卸载应用程序,进行调试工作,然后从应用程序商店中卸载调试程序并重新安装,推送更新并等待Google Play注册该版本。
  3. Do as Kai said, sign the new version and install it as an update, but then you won't get the updates as triggered by Google Play unless you uninstall and reinstall 按照Kai的指示进行操作,签名新版本并将其作为更新安装,但是除非卸载并重新安装,否则您将无法获得Google Play触发的更新

Sign your new version, then you can install it as an update as opposed to uninstalling the Google Play version. 签署新版本,然后可以将其作为更新安装,而不是卸载Google Play版本。 This is probably the only way. 这可能是唯一的方法。

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

相关问题 在一台设备上安装应用程序的生产和测试版本 - Installing a production and test version of an app on one device 有安装新版本时删除旧版本应用程序的方法吗? - There is way to delete old version app while installing new version? 安装调试APK时出现未安装应用程序错误 - Getting App not installed error while installing the debug APK 一个应用程序的开发和生产版本 - development and production version of one app 未在发布版本上安装Android App - Android App not Installed on released version Gettting“未安装Android应用程序。 在安装新版本时,软件包与现有软件包的名称相同 - Gettting “Android App Not Installed. The package conflicts with an existing package by the same name” when installing new version 从应用商店检查和调试安装在设备上的生产 Cordova 应用 - Inspect and debug a production Cordova app installed on the device from the app store 通过代码检测应用是否为生产/发布版本 - Detect if App is Production/Release Version from Code 是否可以检测到 android 应用程序是测试版还是生产版? - Is it possible to detect that an android app is either a beta version or production version? 安装更高版本的APK时解析错误 - Parse Error while installing the higher version apk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM