Software Archive
Read-only legacy content
17061 Discussions

[xdk 2496] version code in final apk is not as set

Roi_D_
New Contributor I
967 Views

Hi,

I wanted to update my apk today and this is the first time I build with XDK 2496 for the play store.
I set version code to 3. uploading the apk in the play store developer console says I have version code set to 38.

Is it a bug in the new XDK? in the build server?

This can be a real problematic if the version code just set randomly. specially if it will go lower than what's already in the app store.

Thanks,
Roi

0 Kudos
6 Replies
Roi_D_
New Contributor I
967 Views

For other readers who have this problem. I used apktool to decode the apk changed the version code in yml file and used apktool again to build a new apk from the folder.

I installed the apk successfully on my phone and uploading to the play store developer console showed me the right version code now.

0 Kudos
Josef_J_
Beginner
967 Views

you are right for some reason version 1 when uploaded to play store  becomes 18 and version 2 becomes 28  and version 3 becomes 38 , it adds  8 to any version . it must be a bug !

0 Kudos
PaulF_IntelCorp
Employee
967 Views

@Roi -- was this a Crosswalk build or an Android build? Also, were you building with CLI 4.1.2 or CLI 5.1.1. You should not be seeing that sort of change to the version code. Please provide additional details so we can resolve this issue.

0 Kudos
Roi_D_
New Contributor I
967 Views

This is an Android build and using CLI 5.1.1.

 

0 Kudos
John_H_Intel2
Employee
967 Views

I was able to replicate this and am working to get it fixed. Will post back when the bug is resolved.

0 Kudos
John_H_Intel2
Employee
967 Views

Please see this sticky post for more info on App Version Code's for CLI 5.1.1

https://software.intel.com/en-us/forums/intel-xdk/topic/594778

0 Kudos
Reply