Copy link to clipboard
Copied
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:
<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
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
<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.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now