Problem to build for Android Mac

Hi Guys

I have my game published on Apple Store, so today I tried to build it for Android.

I created my private key, but when I trie to build it, I had the error sound for mac computers, and the corona keep in “Connection with Server” screen, I rebuild my app for ios and all is fine.

Do you have any ideia what is happend? because I tried to build using corona terminal and any error is printed.

Thanks in Advance
Eros [import]uid: 102959 topic_id: 17833 reply_id: 317833[/import]

Hey there, when you say “any error is printed” - do you mean no error? Or are you getting one?

With Android not working but iOS going fine, I would suggest you double check your build.settings file first. Sometimes a problem there can be the issue.

Have you modified it for Android?

Peach :slight_smile: [import]uid: 52491 topic_id: 17833 reply_id: 68083[/import]

Hi Peach

I have no error.

The unique change that I did in build.settings is insert android code version tag.

Do you think that I need to change more, or need to configure it better?

Thanks
Eros [import]uid: 102959 topic_id: 17833 reply_id: 68157[/import]

My build.settings
[lua]settings =
{
android =
{
versionCode = “1”
},

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

}[/lua] [import]uid: 102959 topic_id: 17833 reply_id: 68270[/import]

Looks like your build.setting file is missing a coma at the before last one bracket.

[lua]},
},
} <
}[/lua] [import]uid: 89165 topic_id: 17833 reply_id: 68273[/import]

[lua]settings =
{
android =
{
versionCode = “1”
},

orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”,
},
},
}[/lua]

Try replacing your build.settings with the above. (You can change orientation to portrait if you wish, this was just what I had on hand.)

Let me know if that works :slight_smile:

Peach [import]uid: 52491 topic_id: 17833 reply_id: 68316[/import]

Hi Peach

Unfortunately it isn’t work.

I just used your build.settings and I got the same problem.

I tried to build just to a device (using debug key) and nothing happen too.

The Build for Android window keep “Connecting with server”.

I’m using 2011.685 version of corona

My build.settings:

[lua]settings =
{
android =
{
versionCode = “1”
},

orientation =
{
default = “portrait”,
content = “portrait”,
supported =
{
“landscapeRight”, “landscapeLeft”,
},
},
}[/lua]
My config.lua
[lua]application =
{
content =
{
width = 768,
height = 1024,
scale = “letterbox”,
fps = 30
},

}[/lua]

Thanks
Eros [import]uid: 102959 topic_id: 17833 reply_id: 68352[/import]

Hmmm, OK;

Try building using the last stable release rather than a daily build. (This is .591 and can be found by clicking on “download” at the top right hand side of this page.)

It’s possible that this particular daily build has a problem.

If you try with .591 and it fails, please then try building one of our samplecode apps for Android, also using .591.

Please let me know the results.

Peach :slight_smile: [import]uid: 52491 topic_id: 17833 reply_id: 68377[/import]

Hi Peach

I’m using the 591 build

Now I got the erros

[text]
Files placed in Android “res” directories (e.g. sound & video) must not contain Java keywords and must conform to the character set [A-Z, a-z, 0-9, _]. These files also may not begin with numbers. Please rename your files and try again.

/Users/eroscarvalho/Dropbox/Music/FunnyBeak/Sleepy/shh-shh.wav
/Users/eroscarvalho/Dropbox/Music/FunnyBeak/Sleepy/snoring-1.wav
/Users/eroscarvalho/Dropbox/Music/FunnyBeak/Sleepy/snoring-2.wav
/Users/eroscarvalho/Dropbox/Music/FunnyBeak/Sleepy/snoring-3.wav
/Users/eroscarvalho/Dropbox/Music/FunnyBeak/Sleepy/snoring-4.wav
/Users/eroscarvalho/Dropbox/Music/FunnyBeak/Sleepy/Tema-A.wav
/Users/eroscarvalho/Dropbox/Music/FunnyBeak/Sleepy/Tema-BC.wav
[/text] [import]uid: 102959 topic_id: 17833 reply_id: 68398[/import]

OK, rename the files it listed in the error :slight_smile:

Peach [import]uid: 52491 topic_id: 17833 reply_id: 68528[/import]

Hi Peach

I renamed these files, and now all is working.

I put the game on store.

Thanks
Eros [import]uid: 102959 topic_id: 17833 reply_id: 68571[/import]

No worries, happy I could help you get your app out there.

Peach :slight_smile: [import]uid: 52491 topic_id: 17833 reply_id: 68593[/import]