When I run my game on the Corona simulator on my PC, everything is perfect. But when I build an APK for android to test it out on my phone, the game doesn’t load properly. In my first attempts it gave me errors that I wouldn’t see on my computer. But now no errors are shown, except the game doesn’t run as it’s supposed to. All I can see is the background image and that’s it.
When I hear “It runs in the simulator, but not on device” the first issue that comes to mind is that you have a file name problem with case sensitivity. The simulator because of the nature of Windows and macOS are not case sensitive when it comes to file names. That is “object.png” and “Object.png” could both refer to oBjEcT.PNG. If you were on a Mac, Corona would let you install directly to the device and capture messages from the device in the Corona console window. I don’t believe we have that feature working Windows yet, but if you’re using adb to install your app on your device to test, you can use “adb logcat” to capture and see the console log messages from the device.
Please see our Debugging Guide: https://docs.coronalabs.com/guide/basics/debugging/index.html#consoledevice-debugging
for more info.
Rob
It worked… Thanks Rob
When I hear “It runs in the simulator, but not on device” the first issue that comes to mind is that you have a file name problem with case sensitivity. The simulator because of the nature of Windows and macOS are not case sensitive when it comes to file names. That is “object.png” and “Object.png” could both refer to oBjEcT.PNG. If you were on a Mac, Corona would let you install directly to the device and capture messages from the device in the Corona console window. I don’t believe we have that feature working Windows yet, but if you’re using adb to install your app on your device to test, you can use “adb logcat” to capture and see the console log messages from the device.
Please see our Debugging Guide: https://docs.coronalabs.com/guide/basics/debugging/index.html#consoledevice-debugging
for more info.
Rob
It worked… Thanks Rob