Spritesheet doesn't work on Android when build on device

I’ve tried to use spritesheet and it works on the simulator. However, when I run on the device, it doesn’t work. What could possibly be the source of the problem?

Also, how can I detect an error report when running on the device? This is very important because so many time I have seen that something on simulator work, but on device it doesn’t, and I have no clue what’s going on or where to start fixing the problem.

Thank you in advance. [import]uid: 5976 topic_id: 4416 reply_id: 304416[/import]

Ok, I knew the problem now.

I wrote this
grabber = require “SpriteGrabber”

but the lua file that I have is spriteGrabber.lua

However, this works fine in Simulator but not device. It really is misleading and it should be the same on both device and simulator. Or if there’s a way to read the console output from Android device, I think error like this can be solved within 5 minutes or so. :frowning: [import]uid: 5976 topic_id: 4416 reply_id: 13851[/import]

On Android you can try running adb logcat in a terminal with the device connected. I’m not sure if errors will be displayed in the log, but you can sprinkle some print statements around the suspected code to test for nil values and what not. [import]uid: 27183 topic_id: 4416 reply_id: 27009[/import]