我一直在将我的应用程序版本代码更新为 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/