安卓版本代码

Fab*_*sco 1 android cordova

我收到这个错误

> platforms/android/build/intermediates/manifests/full/armv7/debug/AndroidManifest.xml:5:26-37:
> AAPT: Float types not allowed (at 'versionCode' with value
> '16130110020').
Run Code Online (Sandbox Code Playgroud)

如何为 versionCode 启用浮点类型?

小智 5

VersionCode 不允许浮点值,它只是用作内部版本号的整数,versionName 是用作向用户显示的版本号的字符串。

例如:versionCode 12345 versionName 1.0.9

参考:https : //developer.android.com/studio/publish/versioning.html?hl=en