App runs fine on simulator, can't find image on Android Device

My app works fine on the simulator, but when I build and copy the apk to my android phone, when pony tiled tries to load the first map, it seems it can’t find an image:

Runtime Error

C:\Users\Nelson\Desktop\Blueberry_Escape\com\ponywolf\ponytiled.lua:204: attempt to index local ‘image’ (a nil value)

Apart from building for android from the simulator and then copying over the apk file and installing from that, are there any other steps I need to take to build to android?

The json tiled map files have the image path in the format like this:

“image”:"…/sprites/tiles/beach/beach_vert.png"   

I don’t see any issues with it and like I said everything works fine on the simulator.

Any help would be much appreciated. 

Android file names are case sensitive, whereas the simulator won’t care. Check the path is exactly correct. 

As far as I can tell I’ve used lowercase everywhere. Is there some way to see the exact file path that the Android device is looking for?

There’s usually a notification on the console that the path or filename differs on disk. It could also be that your filename itself is capitalised, e.g. .PNG, .JPEG, etc.

When you say console do you mean in the simulator when I’m building the APK file or somewhere on the Android phone I can go to?

Yes, the Corona Simulator Console.

You can also use adb to look at the on device console output.

https://docs.coronalabs.com/guide/basics/debugging/index.html

Sorry for the dumb question, but does adb get installed on my windows PC or the Android device?

On your Windows machine. 

You then connect your device to your Windows machine and debug with ADB.

You may need to unlock developer mode on your device and/or allow USB debugging too.  Look under settings for enabling USB debugging.

https://developer.android.com/studio/debug/dev-options#debugging

 

Everything else you need to know is in that second link in my prior post (https://docs.coronalabs.com/guide/basics/debugging/index.html#device-debugging-android).

Well, tried to follow the steps in the second link but I’m not seeing an installer anywhere.  

I downloaded the sdk-tools-windows-4333796.zip    under the command line tools only section.   Now I’m stuck on  " Install the tools. On Windows, run the installer".   

I see a lot of windows batch files and a few applications but none of them look like an installer to me.

Seems like I must be doing something wrong… I doubt it should be so difficult to figure out how to install the tools