Don't try to override them in the manifest additions, this will fail. AIR will dump an error about overriding those fields isn't allowed.
Instead you need to use the standard versionNumber
and (the lesser used) versionLabel
in your AIR application descriptor:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/33.1">
<id>xxxxx.xxxxx.xxxx</id>
<versionNumber>1.1.5</versionNumber> <!-- required -->
<versionLabel>1.1.4</versionLabel> <!-- optional -->
android:versionCode
: an integer value so AIR uses the versionNumber
field and converts it to the android:versionCode
integer field using the formula above ( a*1000000 + b*1000 + c
)
android:versionName
: if you supply a versionLabel
field then this will be used for the android:versionName
field, if you don't then the versionNumber
field will be used.