I have a problem, I set the version code: 5 and the name of version 1.0, I had to change the app
and changed the name of the version to 2.0, but the Play Console does not consider 2.0 and informs me that the version is already registered, and I am obliged to increase the version to 6, being so what’s the point of the version name if I can’t use it?
Read that maybe it can helped you
An internal version number. This number is used only to determine whether one version is more recent than another, with higher numbers indicating more recent versions. This is not the version number shown to users; that number is set by the versionName attribute. The value must be set as an integer, such as "100". You can define it however you want, as long as each successive version has a higher number. [...]
The version name shown to users. This attribute can be set as a raw string or as a reference to a string resource. The string has no other purpose than to be displayed to users. The versionCode attribute holds the significant version number used internally. Reading that it's pretty clear that versionName is just something that's shown to the user, versionCode is what matters. Just keep increasing it and everything should be good
Thank you, your help was timely.
Don’t forget set topic to solution.