在构建Corona SDK时缺少文件?

我正在开发一个使用 mp3.lrc 文件的项目,在 Corona SDK 中运行我的游戏。

当我尝试在安卓设备上构建并运行它时,我收到了这个错误信息:

Director ERROR: Failed to execute new(params) function on 'gameLoad'.

我想知道是否遗漏了游戏所需的某个文件。

是否可能是 mp3.lrc 文件没有和游戏代码一起构建?

请问有人能提供关于我的情况的解决方法吗?谢谢!

点赞
用户1137788
用户1137788

你正在使用哪个版本的 Director?最新版本的 Director 类(我认为是 1.4)会打印出导致问题的“实际错误”。

你提到的错误只是 Director 类中您无法控制的错误。你将会得到以下类似的东西。

-----------------------
Director ERROR: Failed to execute new( params ) function on 'mainscreen'.
-----------------------
e:\corona\satheesh\doodle2\mainscreen.lua:35: attempt to perform arithmetic on global 'screen' (a nil value)
Runtime error

编辑

如果您需要将这些消息显示在设备上,请对 director.lua 进行以下更改

1.设置

showDebug = true

2.更改

local alert = native.showAlert( "Director Class - ERROR", message, { "OK" }, onComplete )

local alert = native.showAlert( "Director Class - ERROR",debugMessage, { "OK" }, onComplete )
2012-05-21 09:57:40