android - 不小心改了android :Versioncode to a higher value,现在怎么办?

标签 android android-manifest

我一直在将我的应用程序版本代码更新为 1,2,3.....15,上次我不小心将版本代码更改为更高的数字

android:versionCode="165"

这会造成任何问题吗?我看过版本码是用来识别应用程序降级或升级的,所以我下次更新时应该把

android:versionCode="166"

android:versionCode="16"

这个版本码整数有没有限制?如果它只是一个整数,如果我把它写成 1000 或更多会怎样?

最佳答案

查看Versioning Your App (Google Dev) :

android:versionCode — An integer value that represents the version of the application code, relative to other versions. The value is an integer so that other applications can programmatically evaluate it, for example to check an upgrade or downgrade relationship. You can set the value to any integer you want, however you should make sure that each successive release of your application uses a greater value. The system does not enforce this behavior, but increasing the value with successive releases is normative.

因此,您的问题的答案是否定的。你的版本代码没问题。并且您必须在下次更新时增加您的版本代码(如上所述)。

关于android - 不小心改了android :Versioncode to a higher value,现在怎么办?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28405207/

相关文章:

android - 如何在android中将EditText限制为两行

android - 使用 setExact() 在每天的特定时间触发警报

java - 如何以编程方式检查 Android 中互联网连接的可用性?

java - 如何实现Android详细通知?

java - 尽管 Activity 存在于 AndroidManifest.xml 中,但该 Activity 却不在其中

android - 我是否需要在 AndroidManifest.xml 中为每个 Activity 指定主题

java - 远程监控所有 Android 设备事件

android - android模拟器数据在哪里?

android - 编译Android应用时的行为不一致

java - 如何用多行文本覆盖图像(文本将位于 Canvas 的中心)