Can't build to Android

I can build to iOS fine, but all the sudden Android stopped working, I get this in terminal when I attempt a build.

2011-06-01 01:02:37.108 Corona Simulator[1563:903] Connection error: (corona.get) ({
“/kWSHTTPResponseMessage” = “{url = http://developer.anscamobile.com/services/xmlrpc; status = HTTP/1.1 200 OK}”;
})

Please Help.
[import]uid: 19176 topic_id: 10720 reply_id: 310720[/import]

me too i tried to build to android but with the free version of corona and it just says not responding after a few seconds of the connecting to server loading bar …am i even supposed to be able to build in the free version? [import]uid: 47760 topic_id: 10720 reply_id: 38915[/import]

I just tested and built fine; are either of you still having any issues?

Peach :slight_smile: [import]uid: 52491 topic_id: 10720 reply_id: 38953[/import]

no mine works now its just really slow for some reason and i doubt its my computer thats making it slow …i left it alone for a few minutes to see if it would build and it did then i tested the app in an htc evo works great (i was building the ghost VS monsters game) now i just gotta make my own game and buy corona… well the subscription anyway

idk why it was acting weird, this computer is hella good has an extreme core i7, 24gb of ram, 2gb in the graphics card … i think it might have been my internet, if it needs it to build apps cause i was downloading some stuff [import]uid: 47760 topic_id: 10720 reply_id: 38962[/import]

Hmm still getting same error but only on one of my apps, will investigate. [import]uid: 19176 topic_id: 10720 reply_id: 38989[/import]

Hey Peach,

I am still having the same issue only with Android on this. I have tried debugging but can’t find an issue and with no debug errors, just what you see above. I was hoping I could send it to you guys and see if you have an idea. Still works fine on iOS builds and I was hoping dropping Openfeint code would fix the error as it started after that was added but it didn’t. Thanks for your time.

-Neil [import]uid: 19176 topic_id: 10720 reply_id: 38995[/import]

Hey ne.hannah,

If you could submit a bug report with steps to replicate, that would be great.

@need420spweed - Nice setup, but yes Corona does use the internet and if you were slowed by downloads that could very well have been the issue.

Peach :slight_smile: [import]uid: 52491 topic_id: 10720 reply_id: 39142[/import]

Hi, Peach:

I am a subscriber of both Android & iOS version of CORONA SDK.

I have just build an app for iOS and it works fine. However, I try to build it for android and it can’t work on my device.

The project works fine on simulator, but fail on device. (I try it on Samsung Galaxy S os2.3.3 and Samsung i9000 os2.2). I don’t know what should I do next.

Can you give a hint?

Bob

PS: in the beginning, I though it was a MP3 audio complete event lost. However, I add a button to activate the function. I found it is not that simple.

[import]uid: 20999 topic_id: 10720 reply_id: 39409[/import]

Hey there,

I am afraid without knowing what your project uses I can’t give any advice; I can tell you that in my limited Android experience audio issues don’t cause crashes; at least not using the wrong format - they simply don’t play. (Again, just the times I personally have had audio problems.)

When you say it fails, do you mean that it instantly crashes?

Peach [import]uid: 52491 topic_id: 10720 reply_id: 39446[/import]

Hey Peach,

tried to submit bug report but the page gave me “problem loading” while submitting, the zip is ~15mb so that may be the issue, is there an email i can send it to and attach it with a bug description? [import]uid: 19176 topic_id: 10720 reply_id: 39499[/import]

Hey ne.hannah; I don’t normally deal with that side of things but leave it with me and I will get back to you :slight_smile: [import]uid: 52491 topic_id: 10720 reply_id: 39603[/import]

i have not seen any report in our support/bug tracker and I just looked at our server logs about android failures and nothing pops up critical.

need more detail as to what you are doing to understand the issue…

c [import]uid: 24 topic_id: 10720 reply_id: 39644[/import]

Carlos,

I just emailed you the zip of the program causing the build error. I couldn’t find peaches email, sorry about that. I am using version 2011.484 and both the debug and release key cause the same error saying there is an issue connecting to the server. Yet I can still get other programs to build for android and this one to iOS. I must be missing something or have tripped something up…

-Neil [import]uid: 19176 topic_id: 10720 reply_id: 39648[/import]

Hi, Peach:

What I mean fail, is not the program can’t build for device. It built OK. But when I put that APK to my device. It just not working.

The program run through the intro screen and the intro audio mp3. then it stop there…

Like I said. I try to add a button to skip the mp3 audio complete event. (if that event is missing.) the program should get the mp3 complete event then go on. But I found that is not the case. It is hanging on somewhere I don’t know.

The same code run OK is iOS. Can I send my code to someone in Ansca?

BOB
[import]uid: 20999 topic_id: 10720 reply_id: 39722[/import]

Hey Peach and Carlos,

I really wanted to get this on Android so I started deleting files one by one, renaming, simplifying build settings, etc. I FINALLY found the issue, well kinda. Some .wav files I was using wouldn’t build on Android, they work fine for iPhone, and other .wav files i made work fine, but the larger ones caused the issue. Thought I would let you know, thanks for getting back to me.

-Neil [import]uid: 19176 topic_id: 10720 reply_id: 39734[/import]

bobyeh, remove audio entirely, test, see what happens. Still crashing? It’s not the audio.

If it clears up when you do that re-add the sound at the start; if that causes a crash try a different format or a different file name - I once used something called, I think it was “break.mp3”, or something like that. Android did not care for the name, apparently.

Peach [import]uid: 52491 topic_id: 10720 reply_id: 39751[/import]

@ne.hannah,

We looked at your project and found two issues.

  1. In your build.settings file, make sure your Android versionCode is an integer.
  2. You have a file named “double.wav”, but “double” is a Java keyword and breaks the Android build process.

Corona should handle these better and we have work in the queue to implement that. In the meantime, use these workarounds and you should be OK. [import]uid: 6787 topic_id: 10720 reply_id: 39827[/import]

Hi, Peach

Thanks for your reply.

I found the problem. I was trying to load data file from sub-directory.

When I first port my app to android. I found I have to move all audio file to root-directory. And I found only the mp3 file need to move. Picture file in sub-directory works fine. Now I know data file should locate on root-directory also. (there is no warning in build process.)

But now I have encounter another problem. My app was an audio picture book. And I found
media.stopSound() and media.playSound() in android can’t work properly like iOS. Can you suggest a work around method for me??

BOB [import]uid: 20999 topic_id: 10720 reply_id: 39894[/import]

Hi, Peach

My problem was solved. Thanks.

I didn’t notice that media.playSound() function is out of date.

Bob [import]uid: 20999 topic_id: 10720 reply_id: 39934[/import]