When compiling with gradle, it is adding a 8 to the end of android version code, this does not occur with ant, example, if i upload version code 50, google tells its version code 508, same as 51, google tells its 518, so looks like theres a 8 behind the variable, which should not be there, please fix urgently, assume another people got this issue aswell, i got it with 3 applications.
- 9 Posts
- 0 Reply Likes
Posted 4 years ago
- 9 Posts
- 0 Reply Likes
Could post images of code aswell, but doubt thats needed, not sure how to proceed on my side because its a huge version code differnce, need this fixed urgently, using the phonegap build version, if that information is needed.
- 9 Posts
- 0 Reply Likes
It is a known problem, developer of PGB replied on another ticket 3 months ago.
preference name android-versionCode
Would work, however removing a 8 in the build code of PGB, would be a better solution.
preference name android-versionCode
Would work, however removing a 8 in the build code of PGB, would be a better solution.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
They won't remove that digit.
...and now I wonder why this would be so "[VERY URGENT]" as your thread title claims.
...and now I wonder why this would be so "[VERY URGENT]" as your thread title claims.
- 9 Posts
- 0 Reply Likes
Because normaly you set the version code in the android-versionCode, according to the documentation, and not to the preference tag.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
You mean the 'versioncode' attribute.
True, and then with gradle, you get an additional free '8'. Yes, that's annoying....but why so urgent? You found the workaround, which they provided, within minutes, so no need for panic.
True, and then with gradle, you get an additional free '8'. Yes, that's annoying....but why so urgent? You found the workaround, which they provided, within minutes, so no need for panic.
- 9 Posts
- 0 Reply Likes
I can not change the title anymore, but needed to upload application after adding push, and had this issue, and my client needed it online today, wish i could change the title, and i would.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
It's OK, Hans. :-)
But...you could have published the app, anyway. It's just a different version(code) than you would have expected, but everything would have worked.
[VERY URGENT] should be used very sparingly, otherwise people wouldn't believe you anymore when there's really grounds for panic.
But...you could have published the app, anyway. It's just a different version(code) than you would have expected, but everything would have worked.
[VERY URGENT] should be used very sparingly, otherwise people wouldn't believe you anymore when there's really grounds for panic.
- 9 Posts
- 0 Reply Likes
True, however if i upload code 50, which i used, it would be 508, and i could not go lower afterwords, so thats a urgent issue.
- 9 Posts
- 0 Reply Likes
Anyway, issue is solved with the fix provided, maybe they should just remove the header tag, and force people to use the preference tag, that wouldm ake sense and not cause issues, would be a solution aswell, anyway my issue is solved.
Ticket can be closed.
Ticket can be closed.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
It's a known problem with gradle. A (longish) while ago, PGB introduced a workaround. Use
to set the real versioncode with gradle engine.
<preference name="android-versionCode" value="xxx"/>
to set the real versioncode with gradle engine.
- 9 Posts
- 0 Reply Likes
Was told to add android-versionCode in header tag, so did that and found it out, reason i posted, but after searching for a long time, found that one and got it fixed.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers

