DIRECTOR Class - ERROR Failed to execute new( params ) function on 'blah' [ANDROID DEVICE ONLY] **solved

So, I am getting this error when I test my app on a Samsung Galaxy Tab 10.1 (the errors shows up in an alert style popup) but not on an iPhone 4, iPad, or the simulator. Does this ring a bell for anyone? I’m not doing anyting that is platform specific in this module besides…

[lua]-- set file type

if “simulator” == system.getInfo(“environment”) then
fileType = “.aif”
else
local platformName = system.getInfo(“platformName”)
if “iPhone OS” == platformName then
fileType = “.aif”
elseif “Android” == platformName then
fileType = “.pcm”
else
print("Unknown OS " … platformName)
end
end[/lua]

… which does not seem like it would cause any problems. Especially because I do that elsewhere successfully on all platforms.

Thanks for any ideas! [import]uid: 54935 topic_id: 21109 reply_id: 321109[/import]

I wonder if this is related to my usage of non-alphabetic characters like ? (G?u) and ? (inu) in some display.newText strings… ? That’s the only thing that comes to mind. I’ll have to test when I have the tablet again :frowning: [import]uid: 54935 topic_id: 21109 reply_id: 83455[/import]

solved. the problem was that I had a .gif file in the relevant module. doh! I had no idea android does not allow them…

http://developer.anscamobile.com/forum/2011/09/26/gif-images-dont-work-android-device-builds-bug [import]uid: 54935 topic_id: 21109 reply_id: 83729[/import]