Runtime error on Android, but not in simulator

That works fine

Are you seeing any warnings in your console log about possible file name case-sensitivity issues?

When you run it on your device can use use “adb logcat” to look for errors and report them here?

Keep in mind Android and iOS are case sensitive operating systems while macOS and Windows are not.

Rob

  1. no any warnings in console log

  2. I can’t use adb to check 

App starting, showing Corona Labs Logo, and then runtime error.

This resuting apk:

https://www.dropbox.com/s/bmwr3qtmyvr6se6/hbm.apk?dl=0

Screens:

Alcatel Pixie 3:

https://www.dropbox.com/s/mv8jy8ge6hjxtzq/20170704_195713.jpg?dl=0

Samsung:

https://www.dropbox.com/s/jco61kmxqqoi0hj/IMG_20170704_195509.jpg?dl=0

just before line 22 add this…

if g1 == nil then display.newRect(display.contentCenterX, display.contentCenterY, 1000, 1000).fill = {1,0,0} end

…and tell us if the screen goes red

Screen red!

And runtime error on the same line.

Then - as Rob hinted at - your problem is case-sensitivity on your filenames or those files are not being included in your build

I got it.

It is, obviously, my mistake.

I have used first seeing image for prototyping. And it was not included in apk, because in build.settings listed in excludeFiles  for android. 

(But now, I wish to see warnings for mistakes like this)

Thanks to everybody.

I love that you mark your answer as “best answer” when I told you what the answer was!  *SMH*

I am new on this forum, I suppose it mark all topic. 

I’m curious as to why you can’t use “adb logcat”? This is a critical tool in being able to debug problems on the device. If you need help with it, please see:

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

Rob

It problem with my devices and drivers, but not with Corona SDK, thanks for caring ;-)