Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codenameone app version issue

Tags:

codenameone

I am new with CN1 and I have a simple question. I created an Android app, and some update versions. The problem is that when I try to change version it doesn't change it on the APK.

I use the field Version at the Properties, but it works only when I use 1, 2 or 3. But it doesn't work with 1.1 1.2 2.2 etc. When i try to upload the APK to Playstore it says that it has the old version. What am I doing wrong?

I hava also use the android.versionCode=200 or 300 on build hints but it disappears when I close the properties window.

I hope you understand the problem.

Thanks in advance.

like image 636
KronosGR Avatar asked Sep 03 '26 19:09

KronosGR


1 Answers

Check the value of codename1.version in the codenameone_settings.properties make sure it matches the value you set.

Valid values are decimal numbers with up to two digits after the point so:

  • 1.11 - Valid
  • 1.1 is the same as 1.10 in some platforms...
  • 1.111 - the last 1 will be ignored
  • 1.1.1 - won't work
like image 179
Shai Almog Avatar answered Sep 07 '26 04:09

Shai Almog