logcat: ERROR/(9855): can't open 'image.png'

Hi there,

trying to run my ios game on android and I installed ddms to do some on device testing.
Now I see a lot of strange errors like this:

09-24 14:16:45.773: ERROR/(9855): can’t open ‘_g_menu/star_bg.png’
09-24 14:16:45.780: ERROR/(9855): can’t open ‘_g_menu/star.png’
09-24 14:16:45.784: ERROR/(9855): can’t open ‘_g_button/menu.png’
09-24 14:16:45.788: ERROR/(9855): can’t open ‘_g_button/menu_down.png’
09-24 14:16:45.792: ERROR/(9855): can’t open ‘_g_button/replay.png’
09-24 14:16:45.800: ERROR/(9855): can’t open ‘_g_button/replay_down.png’
09-24 14:16:45.804: ERROR/(9855): can’t open ‘_g_button/next.png’
09-24 14:16:45.808: ERROR/(9855): can’t open ‘_g_button/next_down.png’

this error shows with all the images I load, even though the game runs fine on the device
= it shows all the images it tells me it can’t open…

Can anyone tell me what is going on? [import]uid: 13632 topic_id: 15532 reply_id: 315532[/import]

Hi.

Assets, images/sounds etc can’t be in subdirectory’s on android devices at present [import]uid: 84637 topic_id: 15532 reply_id: 57389[/import]

oh yes… I remember reading that at some point, but thought it wasn’t the case anymore.

But the strange thing is my app runs just fine on all the android devices I tested on even though I have image assets in subfolders… I tested it on 6-7 different devices.

So just out of curiosity, where will the problem appear? ( exept for the logcat errors )
Will it crash on some devices if I have assets in subfolders… or will it make the app unstable in anyway?

[import]uid: 13632 topic_id: 15532 reply_id: 57479[/import]

ehhhh… now I placed all 427 files in the root folder…
Still same errors showing up:

09-26 09:51:36.413: ERROR/(9138): can’t open ‘menuBtn1.png’
09-26 09:51:36.421: ERROR/(9138): can’t open ‘menuBtn1_down.png’
09-26 09:51:36.433: ERROR/(9138): can’t open ‘star_bg.png’
09-26 09:51:36.437: ERROR/(9138): can’t open ‘star.png’
[import]uid: 13632 topic_id: 15532 reply_id: 57562[/import]

@Danny

and why does your troubleshooting guide say this under android specific:

“Images are allowed in subfolders but video and audio files (in the apk “res” directory) will not work unless they are in the main resource folder (where main.lua resides).”
( http://developer.anscamobile.com/reference/troubleshooting )

if images etc can’t be in subdirectory’s on android devices at present

Thanks [import]uid: 13632 topic_id: 15532 reply_id: 57566[/import]

So to confirm, the images are loading and displaying on screen but the errors are saying otherwise? [import]uid: 84637 topic_id: 15532 reply_id: 57587[/import]

yes, so it’s not really a big problem, but I am just wondering what’s going on…
and a little bit worried it can cause problems at some point or devices [import]uid: 13632 topic_id: 15532 reply_id: 57594[/import]