Unable to update application on Google Market [RESOLVED]

I’m having an issue with setting the versionCode in the AndroidManifest.xml file. There are several other threads that are similar to the issue I am having but they get a different error message. I tried this code (and many variations) in my build.settings file:

settings =  
{  
android =  
{  
versionCode = "2"  
}  
}  

And I get the following error message on Google Market when I try to update an existing app:

Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml.  

I’m guessing I was able to initially put the app up on the market because I didn’t have anything for versionCode in my build.settings file so it defaulted to 1. But for this update I’ve tried many different versionCode tricks from the forum and have had no luck.

I am using the daily build 2011.562 for Windows. [import]uid: 22492 topic_id: 12120 reply_id: 312120[/import]

Have you tried to set it as a number instead of a string (ie. without the quotation marks)?

versionCode = 2 [import]uid: 8460 topic_id: 12120 reply_id: 44138[/import]

I have tried setting the versionCode without the quotes and I get the same error.

This is becoming an annoying issue since I have an app that I need to update but can’t. [import]uid: 22492 topic_id: 12120 reply_id: 44593[/import]

I still am unable to get this to work even with the most recent daily build for Windows.

Corona is putting in the wrong versionCode format as shown in the photos below from my personal device. I am able to copy the app over USB to my own phone but Google Market will not accept it due to it having a decimal in the versionCode.

Correct versionCode format has no decimal:

Incorrect versionCode format has decimal:

I cannot get the versionCode to change no matter what I try in my build.settings file. Is there any other way to set this value? Does anyone know if this works properly on the Mac builds? I’d rather not have to install the JDK on my laptop just to get around a simple number in a config file.
[import]uid: 22492 topic_id: 12120 reply_id: 45158[/import]

It is working great on mac os build that I use. [import]uid: 22737 topic_id: 12120 reply_id: 45177[/import]

Bumping this again because I still cannot get the versionCode to update properly and I have an app in the Market currently that needs an update.

Has anyone had success putting in versionCode on a Windows machine? I don’t think it works. I have used several of the most recent daily builds and they all come back with versionCode 1 and versionName 1.

I have tried many variations of my build.settings file but still have had no success. If anyone has a working build.settings file that allows them to use versionCodes other than 1 on Windows, I would appreciate it if they would post the entire contents of the file here and the version of the Windows build they are using.

For Ansca, I would suggest that for Android builds the build dialog have a textbox for each versionName and versionCode to simplify things. [import]uid: 22492 topic_id: 12120 reply_id: 45984[/import]

I was able to find a solution to this thanks to uapo15 posting his build.settings file in another thread. I guess I had a goofy comma in the wrong place or something. [import]uid: 22492 topic_id: 12120 reply_id: 46192[/import]

I’m having the same issue: I cannot update my current app with a new version. Here is the error I get:

“The new apk’s versionCode (1) already exists.”

I changed my manifest file to reflect another version, but no matter what I do, it’s the same error. I would appreciate any help so I can update my app. Thank you all in advance!

Here is my manifest code:

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

package=“local.vines.hellallama.creative”
android:versionCode=“2”
android:versionName=“2”>



P.S. And yes, I’ve read Google’s documents… [import]uid: 77730 topic_id: 12120 reply_id: 47747[/import]

You need to edit your build.settings file and add versionCode.

See this thread for more detail:
http://developer.anscamobile.com/forum/2011/07/15/versioncode-error [import]uid: 22492 topic_id: 12120 reply_id: 47791[/import]

I was updating the android xml file not the build file. DUH on my part. Thank you, it worked! =D [import]uid: 77730 topic_id: 12120 reply_id: 47795[/import]