How do I increment the apk versionCode in AndroidManifest.xml?

I’m trying to post a new version of my game to the Google Android market but when I upload my apk Google tells me this:

The new apk’s versionCode (1) in AndroidManifest.xml must be higher than the old apk’s versionCode (1).

When I build in Corona I set the version to 2 so I don’t understand why it still thinks it’s 1.

I have a similar problem on the Android market where I get :

**Invalid bundle version

Binary version code ‘1’ has to be greater than one in previous version**

[import]uid: 27901 topic_id: 9539 reply_id: 309539[/import]

Nevermind. I learned that I had to set the versionCode in the build.settings as described here:

http://developer.anscamobile.com/content/configuring-projects [import]uid: 27901 topic_id: 9539 reply_id: 34843[/import]