[TIMOB-559] Android: Appversion never taken from tiapp.xml

GitHub Issuen/a
Resolution Date2013-10-19T01:07:23.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, CLI, Tooling
Labelsandroidbuild, ay-verified, cb-verified, core
AssigneeChris Barber


I found this bug while I created new release for Android Market. appversion is never changed from tiapp.xml file (version tag). I send you patch to correct this, to apply on 1.0.0/android/android.py




  1. Metal3d 2011-04-15

    There is a trouble with this patch... in fact with "android" manifest if you need to specify a floating value for version. It could be cool to correct this quickly, everybody wich needs to upload a new revision on android market is blocked because the appversion need to greater than previous

  2. Stephen Tramer 2011-04-15

    Assigning to Don for triage... but bounce it back to iOS once you've handled it so we can check the report as well.

  3. Don Thorp 2011-04-15

    There is a reason the version tag isn't used, because it's not sufficient for Android. You need to specify them in the android section of the tiapp.xml in the application element. Android requires an integer version that is incremented for each release AND a string version that can be everything. I will leave it in TBS so we can discuss it, but until we get project/platform specific settings it has to be done through the android manifest.

  4. Jon Alter 2011-04-15

    Associated Helpdesk Ticket


  5. Jon Alter 2011-08-29

    Associated Helpdesk Ticket

  6. Josh Roesslein 2012-07-26 We still don't generate a new versionCode for the AndroidManifest.xml when the "version" in tiapp.xml is updated. As mentioned in previous comment this is mostly due to Android requiring this to be an integer. http://developer.android.com/guide/topics/manifest/manifest-element.html#vcode
  7. Chris Barber 2013-10-15 In Titanium SDK 3.2, we will populate the "android:versionName" with the from the tiapp.xml. The "android:versionCode" will default to "1". You can override both of these values via the tiapp.xml:
           <manifest android:versionName="whatever" android:versionCode="1"></manifest>
  8. Allen Yeung 2013-10-19 PR: https://github.com/appcelerator/titanium_mobile/pull/4781
  9. Samuel Dowse 2013-11-13 Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: Titanium SDK, build: 3.2.0.v20131112144044 CLI: 3.2.0 Alloy: 1.3.0 Android version can be specified in the tiapp.xml Closing.

JSON Source