Trouble Building for Android!!

Hi,

I generated my key alright, but when my apk was ready and I tried to upload it to android market, I got this error from their site:

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

What should I change to meet their demands??

Thanks a lot, I’m new at android… [import]uid: 95495 topic_id: 24132 reply_id: 324132[/import]

Can you post up your build.settings file please? I 99% certain the issue is there :slight_smile: [import]uid: 84637 topic_id: 24132 reply_id: 97421[/import]

Here it is!

[code]

settings =
{
iphone =
{
plist =
{
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon@2x.png” ,
“Icon-72.png” ,
},
},
},
}

settings =
{
iphone = {
plist = {
UIPrerenderedIcon = true,
UIStatusBarHidden = true,
UIAppFonts = {
“akaFrivolity.ttf”
},
UIApplicationExitsOnSuspend = false,
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fb289890714412701”,
}
}
}
},
},
}

settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
},
},

android =
{
usesPermissions =
{
“com.android.vending.BILLING”,
},
}
}
[/code] [import]uid: 95495 topic_id: 24132 reply_id: 97425[/import]

Change the android part to this

android =  
 {  
 versionCode = "1",  
 usesPermissions =  
 {  
 "com.android.vending.BILLING",  
 },  
 }  
  

[import]uid: 84637 topic_id: 24132 reply_id: 97427[/import]

Hey Danny,

I tried that, but now I can’t even build it. I get “An error occurred during the build. Please consult the Console logs (or the corresponding Terminal window) for more details.”, but nothing show on my terminal that could indicate anything.

But without this modification, I was able to build it normally.

Any thoughts?

Thanks a lot [import]uid: 95495 topic_id: 24132 reply_id: 97444[/import]

Your build.settings file is not correct. Here is how it should look (i tested with this build.settings configuration and my app builds fine :

[code]

– cpmgen build.settings
settings =
{
iphone =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
},
},

plist =
{
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon@2x.png” ,
“Icon-72.png” ,
},
UIPrerenderedIcon = true,
UIStatusBarHidden = true,
UIAppFonts = {
“akaFrivolity.ttf”
},
UIApplicationExitsOnSuspend = false,
CFBundleURLTypes =
{
CFBundleURLSchemes =
{
“fb289890714412701”,
}
}
},
},

android =
{
usesPermissions =
{
“com.android.vending.BILLING”,
},
versionCode = “1”,
}
}

[/code] [import]uid: 84637 topic_id: 24132 reply_id: 97490[/import]

Ok, now it worked.

But again when It tried to upload it, I got the same error

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

!!

Freaking android…iphone is so much simpler lol

[import]uid: 95495 topic_id: 24132 reply_id: 97519[/import]

If you don’t set that in the build.settings file, but when you build the app on the dialog there are two version numbers. The first one has to be a positive whole number greater than the one for a build currently in the store. The second one can be any version number you like. I like most people set the second one to match like this:

versionCode: 3
version: 1.3

the next version would be versionCode 4 and version 1.4 but I wouldn’t think that Corona would let you get past the build dialog without those filled out correctly. [import]uid: 19626 topic_id: 24132 reply_id: 97523[/import]

Hey Rob,

so what should I put in my build.settings file? versionCode = "3",? ?

Where do I put 1.3?

Thanks! [import]uid: 95495 topic_id: 24132 reply_id: 97528[/import]

I don’t put anything in my build.settings file for this.

I set it on the build dialog screen

You don’t use 3 and 1.3 unless a) you want to and b) it’s the 3rd release.

You’re free to start your first version a 142176 if you want to. But most people would make their first release 1, 2nd release 2 etc. for the versionCode and then match the versionName as 1.1, 1.2, etc.
[import]uid: 19626 topic_id: 24132 reply_id: 97533[/import]

Hm, I don’t seem to have this gap for Version Name belo version Code!

It just goes directly to package! Is this a corona version issue maybe?
[import]uid: 95495 topic_id: 24132 reply_id: 97536[/import]

Are you using Windows or Mac?

What version are you using?
[import]uid: 19626 topic_id: 24132 reply_id: 97571[/import]

Hum, it’s Version 2011.591 (2011.8.2), on Mac. [import]uid: 95495 topic_id: 24132 reply_id: 97582[/import]

Hey Rob and Danny,

It turned out it was this version issue! I updated my corona and problem solved…thanks a lot!

Cheers [import]uid: 95495 topic_id: 24132 reply_id: 97584[/import]

Is this type of code for android build.settings from
http://developer.anscamobile.com/content/configuring-projects
no longer valid?

settings =
{
android =
{
versionCode = “3”
},

androidPermissions =
{
“android.permission.ACCESS_FINE_LOCATION”,
“android.permission.INTERNET”
},

orientation =
{
default = “landscapeRight”
},
} [import]uid: 32063 topic_id: 24132 reply_id: 99933[/import]