I just exported my app as an .apk file and exported it onto my phone. At first, it crashed on start up, but I fixed that by fixing some of the case sensitivity (changed pictures/PlayButton to Pictures/PlayButton). Now, the app allows me to go to the menu scene (that was where the case sensitivity problems were) and the credits menu (there are no pictures in that scene). But when I try to enter the game scene in my app, it crashes. It worked perfectly fine in the desktop and android players. I looked for case sensitivity errors in the code but found none. Can somebody help me find what is crashing the game (when I enter the game scene) in my code? Thank you!
Comments
Are you sure that your all image files names are correct and format as it should be. (pnp as png jpg as jpg etc..)
Which line is it giving error.
I wanted to debug it but can not hence your project is not working without assets. At least try to reshare it with some dummy assets if they are copyrighted.
this part:
I'm sorry I am in a hurry right now and I can't find a tutorial on how to do it, but basically you connect your device via usb to eclipse, enable debug mode on the device, and you should start seeing messages from your device in the output window in eclipse.
When you run your project in debug mode from eclipse you should see a more specific error or a line of code when it crashes.
good luck!
%%-
Connected to the target VM, address: 'localhost:8605', transport: 'socket'
once it is connected to my device. Then nothing after that. And the debugger and Logcat sections constantly output debug info, but none of it seems to be errors.
08-06 10:25:49.703 601-1281/? W/libprocessgroup﹕ failed to open /acct/uid_10041/pid_31329/cgroup.procs: No such file or directory
This error kept repeating over and over again, except slightly different. For example another one was:
08-06 10:25:49.241 601-1348/? W/libprocessgroup﹕ failed to open /acct/uid_10143/pid_31937/cgroup.procs: No such file or directory
Also, these lines were repeated over and over again as well:
08-06 10:25:49.545 241-261/? W/Vold﹕ Returning OperationFailed - no handler for errno 0
08-06 10:25:49.565 241-261/? E/Vold﹕ Failed to find mounted volume for /storage/MicroSD/Android/data/com.cleanmaster.mguard/files/
And in the debug section it said that debug information is unavailable. All this and it still allowed me to play up until game.lua. Weird. :-?
08-06 14:48:28.534 297-635/? E/audio_a2dp_hw﹕ adev_set_parameters: ERROR: set param called even when stream out is null
If the last one (E/audio_a2dp_hw) is certainly coming from your game, I would try to disable any sound and see if it is still there (I believe it shouldn't) then you could re enable sounds one by one or compare your files with gspot and see if there is any visible difference in encoding/bitrate that may cause it.
It's a blind guess though
hiscoreText:setText(hiscore) and it worked! In results.lua, I also commented out this: