I have built my app using the PhoneGap build service. I am using gradle as the build tool.
When I first published my app I had the following versions for android in the widget tag as attributes
versionCode = "1" version = "1.0.0"
They showed up properly on the playstore.
When publishing an update I updated the versions as follows
versionCode = "2" version = "1.0.1"
But immediately after publishing the playstore dashboard shows versions as
version = 28(1.0.1)
Where is the 28 coming from?
I have read some similar questions here:
One says that it need to be in the preference tag and another says that it need to be android-versionCode and not just versionCode in the widget tag.
What is the correct solution?
The problem is Gradle, which appends the '8' to whatever you have in the versionCode attribute of the Widget element.
To overcome the problem, the PGB Team introduced the 'android-versionCode' preference, which overrides whatever is specified in the versionCode attribute.