Skip to main content
Participant
February 29, 2012
Question

Manifest properties versionNumber and versionLabel are ignored

  • February 29, 2012
  • 2 replies
  • 1142 views

The manifest arguments <versionNumber> and <versionLabel> are both ignored when compiling an Air Application for Android.

I've created a default application using both FDT5 and Flex 4.6 using the 4.6 SDK, when compiling to Android the <versionNumber> and <versionLabel> properties are not passed to the Android Manifest.

I've logged a bug @ https://bugbase.adobe.com/index.cfm?event=bug&id=3100879 however it's so far been ignored (which is nice for a £400+ product).

I'm under the impression that I will be unable to push an app to the market place without being able to compile applications with a versionCode present in the Android Manifest, as the market requires the app version to be higher than the pervious to push an update. Also the user cannot see in the Application menu the version they currently have (if you go settings->applications->installed applications no version number appears). All native Andriod applications I've compiled always have this versioning displayed to the user and present in the manifest. Air 3.1 applications do not.

This was working in Air 2.5

Example manifest :

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<application xmlns="http://ns.adobe.com/air/application/3.1">

          <id>TestVersion</id>

  <filename>TestVersion</filename>

          <name>TestVersion</name>

  <versionNumber>0.0.0</versionNumber>

  <initialWindow>

                    <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>

  <autoOrients>true</autoOrients>

        <fullScreen>false</fullScreen>

        <visible>true</visible>

    </initialWindow>

  <android>

        <manifestAdditions><![CDATA[

                              <manifest android:installLocation="auto">

                                  <uses-permission android:name="android.permission.INTERNET"/>

                              </manifest>

 

  ]]></manifestAdditions>

    </android>

</application>

This is basically an unchanged manifest (with comments removed) that's generated when you create a new actionscript mobile project in Flex Builder 4.6.


Does anyone know any workarounds, we need to use 3.1 as we're using Native Extensions in our app.

Cheers,


This topic has been closed for replies.

2 replies

Mr. Baker the Shoe Maker
Inspiring
April 26, 2012

Have you had any luck on finding out how to solve this issue?

I recently tried to update my app in the Android app market and when I uploaded it I got the following message:

"The new apk's versionCode (1000000) already exists."

I posted the issue on the forum but no one has responded.

Should this be as simple as changing the version number and version label (That did not work) in the Air for Android settings?

March 1, 2012

I am also seeing this issue and am preparing for a release.

Does anyone know a workaround, can we open the apk and modify the android manifest by hand?

Any help much appreciated!

Greg