Version Codes are driving me NUTS !

Ideas and discussion about publishing and distributing your games

Post » Tue Nov 07, 2017 8:07 pm

Hi all,

I am building my .apk with Coocoon and there I am able to change the version code. I know I need to increase the value of the Version Code every time, by at least 1... in theory!

I had a version code 9000 and then added 90009 at the developer console did not accept it... Every time I have to add random big numbe at the end to see if works, and even ad a good amount sometimes it doenst accept.

I dont understand the calculation logic it does. Can some one explain?

If the vcode is 9090909090900 it becomes 1813121868
if add up to 909090909090099999 it becomes 142999352 a even smaller number! WTF !
Last edited by farfetchd83 on Wed Nov 08, 2017 3:33 am, edited 2 times in total.
B
19
S
9
Posts: 75
Reputation: 1,717

Post » Tue Nov 07, 2017 9:40 pm

1.0.0
2.0.0
....
(That worked for me)
B
9
S
4
Posts: 25
Reputation: 727

Post » Tue Nov 07, 2017 11:13 pm

still trying to fix it
B
19
S
9
Posts: 75
Reputation: 1,717

Post » Thu Nov 09, 2017 9:30 pm

NOTE: assume this is for Android

did you check that the android_manifest.xml updates to the same number you expected?

sometimes the Android build screws up and doesn't fully update like it's cached or something) - I change it in the properties of the C2 project. Then recompile, then import to android studio...

Just a thought (and a sledgehammer approach) - if you rename you app (ie stick a number 2 after it in the name field) does it update then?
B
9
S
4
Posts: 25
Reputation: 727

Post » Fri Nov 10, 2017 3:42 am

After trying a few more times I got to get a number right. I wanted to have the app versions always using 9 (Ex 9.9 9.9.9) and I got lost with the play developer console version code "generator",

I think the final solution I found looks pretty cool actually:

999.99.99.99.9.0.9

thank you anyway for your attention
B
19
S
9
Posts: 75
Reputation: 1,717

Post » Fri Nov 10, 2017 3:05 pm

So I got this errror trying to upgrade a version code from 4000000 to 5000000000: WHY?
this was from 4.0 to 5.0

COMPILER ERROR:

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/workspace/platforms/android/build/intermediates/manifests/full/armv7/release/AndroidManifest.xml:5:26-36: AAPT: Float types not allowed (at 'versionCode' with value '5000000000').

/workspace/platforms/android/build/intermediates/manifests/full/armv7/release/AndroidManifest.xml:2: error: Error: Float types not allowed (at 'versionCode' with value '5000000000').
B
19
S
9
Posts: 75
Reputation: 1,717

Post » Fri Nov 10, 2017 3:14 pm

So I had to use 400000045900 and it worked... i dont get the logic here thats why I get lost...

on google play it became 1385906426
B
19
S
9
Posts: 75
Reputation: 1,717


Return to Distribution and Publishing

Who is online

Users browsing this forum: No registered users and 2 guests