Skip to main content
Mr. Baker the Shoe Maker
Inspiring
April 25, 2012
Answered

How do I change the Version Code in the Flash Android settings for the Android app Market?

  • April 25, 2012
  • 4 replies
  • 2368 views

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."

In the Flash Adnroid settings I changed the version label but that did not help.

So I have two questions:

  1. How do I change the Version code in the Flash Android settings? I changed the version number and version label but that did not work.
  2. What is the difference between the version number and version label?
This topic has been closed for replies.
Correct answer Mark.fromOP

  <versionNumber>1.1.0</versionNumber>

That should fix it, you must be uploading the wrong file. I've gotten that error before, simply changing the version number in flash and reexporting solves the problem. Flash can sometimes reroute your .apk output file folder destination, when uploading your apk double check that it was created when you think it was, best way to do it is publish it then upload it and upon uploading make sure it was created a minute ago or so no march 30th. Also try it without the version label it might be conflicting with something.

4 replies

Mark.fromOP
Inspiring
April 30, 2012

Dont know if you figured this out by now but chaning the version number should do it.

If your current version is 1000000 that = 1.0.0

So in your version box on flash cs5.5 chagne the 1.0.0 to 1.0.1 and repackage the apk, I dont think the label really matters, but maybe you have to give it a new label everytime you make a new version, doubt that.

Seems like you tried to upload an old, already published apk, and the version number conflicted. Check your xml of the file you tried to upload and see what the version number says it is.

Mr. Baker the Shoe Maker
Inspiring
May 1, 2012

I tried that but it did not work. Apparently there is a difference between the version code and version number (which is set in the Android settings). From my research the version label is optional, so there are no problems there.

This is the what the XML file says:

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

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

  <id>com.company.nameofapp</id>

//Below is the correct version number, but has no relation to the version code.

  <versionNumber>1.1.0</versionNumber>

  <versionLabel>NewLayout</versionLabel>

  <filename>Name of app</filename>

  <description/>

I did find this piece of information for Androin version codes. (http://developer.android.com/guide/publishing/versioning.html)  But I don't know how to place it into the xml file without conflicting with other code.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     
package="com.example.package.name"
     
android:versionCode="2"
     
android:versionName="1.1">
   
<application android:icon="@drawable/icon" android:label="@string/app_name">
        ...
   
</application>
</manifest>


Any other thoughts are much appreciated.

Mark.fromOP
Mark.fromOPCorrect answer
Inspiring
May 1, 2012

  <versionNumber>1.1.0</versionNumber>

That should fix it, you must be uploading the wrong file. I've gotten that error before, simply changing the version number in flash and reexporting solves the problem. Flash can sometimes reroute your .apk output file folder destination, when uploading your apk double check that it was created when you think it was, best way to do it is publish it then upload it and upon uploading make sure it was created a minute ago or so no march 30th. Also try it without the version label it might be conflicting with something.