问题描述
我即将在市场上发布新版本的应用程序。为了避免一旦将其推向市场并通知人们更新的任何潜在问题,我想在手机上使用.apk模拟将要发布的新版本应用程序的过程。
I'm about to publish a new version of an app to the Market. In order to avoid any potential problems once its been pushed to the Market and people get notified of an update, I'd like to simulate that process on my phone using the .apk for the new version of the app I'll be publishing.
例如,它对正在使用的SQLite数据库进行了更新。
For instance, it has an update to the SQLite DB it's using.
我能找到的最接近的是通过以下命令使用Android调试桥(adb):
adb install C:\myApplication.apk
,我的手机通过USB电缆。
(该参数代表您的apk文件在PC上的任何位置)。
The closest I can find is using the Android Debug Bridge (adb) using the command:adb install C:\myApplication.apk
with my phone attached to my PC via the usb cable.(the parameter represents wherever your apk file is on your PC).
执行此操作时,如果该应用程序已安装在手机上,错误消息:
When I do this, if the app is already installed on my phone, I get an error message:
如果我从手机中删除了现有应用,则 adb安装
命令可以正常工作。
因此,看来这只能用于安装手机上当前不存在的应用。
If I delete the existing app from my phone, the adb install
command works fine.So, it looks like this can only be used to install an app that doesn't currently exist on your phone.
有什么方法可以 >模拟更新过程?
如果有一个 adb更新
命令会很好,但我看不到。
Is there any way to simulate the update process?It'd be nice if there was an adb update
command, but I don't see that.
推荐答案
我认为您的错误是因为您安装了市场签名版本,并且尝试安装调试签名版本。如果您使用市场密钥对其进行签名,则应该可以安装。
I think your error is because you have the market signed version installed and your trying to install a debug signed version. If you sign it with your market key it should install fine.
这篇关于当您将应用程序更新发布到市场时,如何测试会发生什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!