Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

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

Engaged ,
Apr 24, 2012 Apr 24, 2012

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?
TOPICS
Development
2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , May 01, 2012 May 01, 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 withou

...
Translate
Engaged ,
Apr 30, 2012 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 30, 2012 Apr 30, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 01, 2012 May 01, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 01, 2012 May 01, 2012
LATEST

Thanks for the feedback.

The problem was the output file name. I learned that when you update a file you have to make sure the output file is saved. If you work on different flash files sometimes the output file will point to a different directory.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines