Game works great on Corona Emulator but not in apk

Hi everyone!

I’m working with storyboards and have this problem. I work using of course the build in emulator of the corona SDK. 

Now, the problem that i have is with the storyboards, finally I get working, and is going great on the emulator, but when I export to apk and upload to the phone the “game” scene is not loading, but the main menu and splash is working great.

The strange thing is that on the emulator everithing works ok. What would be the problem? case sensitive extension? layers problem? arrange?.

Thanks for the reply.

Regards.

Can you take a look at the adb logs on the Android device to see any errors that might be printing out?

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Hey nice tip, I’ll try and let you know. Thanks.

Thanks!

I found the problem:

V/Corona  (18238): WARNING: Asset file “bg4.png” does not exist.

I/Corona  (18238): Runtime error

I/Corona  (18238): ERROR: table expected. If this is a function call, you might

have used ‘.’ instead of ‘:’

I/Corona  (18238): stack traceback:

I/Corona  (18238):      [C]: ?

I/Corona  (18238):      [C]: in function ‘newGroup’

I/Corona  (18238):      ?: in function ‘?’

I/Corona  (18238):      ?: in function <?:133>

I/Corona  (18238):      ?: in function ‘dispatchEvent’

I/Corona  (18238):      ?: in function ‘gotoScene’

I/Corona  (18238):      ?: in function <?:156>

I/Corona  (18238):      ?: in function <?:218>

I/Corona  (18238): Runtime error

I/Corona  (18238):

I/Corona  (18238): stack traceback:

I/Corona  (18238):      [C]: ?

I/Corona  (18238):      [C]: in function ‘newGroup’

I/Corona  (18238):      ?: in function ‘?’

I/Corona  (18238):      ?: in function <?:133>

I/Corona  (18238):      ?: in function ‘dispatchEvent’

I/Corona  (18238):      ?: in function ‘gotoScene’

I/Corona  (18238):      ?: in function <?:156>

I/Corona  (18238):      ?: in function <?:218>

I have an xperia Z1 mobile phone and the usb debugging is disabled by default, for those who has the same phone, to enable it you have to go to Settings > About phone and tap seven times on Build number.

Also need to download the adb debug driver from here: http://developer.sonymobile.com/downloads/drivers/

Can you take a look at the adb logs on the Android device to see any errors that might be printing out?

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Hey nice tip, I’ll try and let you know. Thanks.

Thanks!

I found the problem:

V/Corona  (18238): WARNING: Asset file “bg4.png” does not exist.

I/Corona  (18238): Runtime error

I/Corona  (18238): ERROR: table expected. If this is a function call, you might

have used ‘.’ instead of ‘:’

I/Corona  (18238): stack traceback:

I/Corona  (18238):      [C]: ?

I/Corona  (18238):      [C]: in function ‘newGroup’

I/Corona  (18238):      ?: in function ‘?’

I/Corona  (18238):      ?: in function <?:133>

I/Corona  (18238):      ?: in function ‘dispatchEvent’

I/Corona  (18238):      ?: in function ‘gotoScene’

I/Corona  (18238):      ?: in function <?:156>

I/Corona  (18238):      ?: in function <?:218>

I/Corona  (18238): Runtime error

I/Corona  (18238):

I/Corona  (18238): stack traceback:

I/Corona  (18238):      [C]: ?

I/Corona  (18238):      [C]: in function ‘newGroup’

I/Corona  (18238):      ?: in function ‘?’

I/Corona  (18238):      ?: in function <?:133>

I/Corona  (18238):      ?: in function ‘dispatchEvent’

I/Corona  (18238):      ?: in function ‘gotoScene’

I/Corona  (18238):      ?: in function <?:156>

I/Corona  (18238):      ?: in function <?:218>

I have an xperia Z1 mobile phone and the usb debugging is disabled by default, for those who has the same phone, to enable it you have to go to Settings > About phone and tap seven times on Build number.

Also need to download the adb debug driver from here: http://developer.sonymobile.com/downloads/drivers/