KronosGR
KronosGR

Reputation: 89

Codenameone app version issue

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.

Upvotes: 3

Views: 269

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

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

Upvotes: 2

Related Questions