[LayaAir 2.0]QQ小游戏,Laya.MiniAdpter.nativefiles 报错
Laya.MiniAdpter.init();
Laya.MiniAdpter.nativefiles = [
"res/design_data",
MAC Laya 2.5,qq模拟器V0.1.29-beta56
上面的代码发布qq小游戏后在模拟器里面报错,检查了lib里面已经有laya.qqmini.js,貌似好像找不到MiniAdpter 的引用文件js/bundle.js执行出现异常
TypeError: Cannot read property 'init' of undefined
at Object.initMiniAdapter (bundle.js:1)
at new <anonymous> (bundle.js:1)
at bundle.js:1
at bundle.js:1
at f (QGame.js:1)
at QGame.js:1
at index.js:1
at f (QGame.js:1)
at QGame.js:1
at game.js:1
Laya.MiniAdpter.nativefiles = [
"res/design_data",
MAC Laya 2.5,qq模拟器V0.1.29-beta56
上面的代码发布qq小游戏后在模拟器里面报错,检查了lib里面已经有laya.qqmini.js,貌似好像找不到MiniAdpter 的引用文件js/bundle.js执行出现异常
TypeError: Cannot read property 'init' of undefined
at Object.initMiniAdapter (bundle.js:1)
at new <anonymous> (bundle.js:1)
at bundle.js:1
at bundle.js:1
at f (QGame.js:1)
at QGame.js:1
at index.js:1
at f (QGame.js:1)
at QGame.js:1
at game.js:1
没有找到相关结果
已邀请:
1 个回复
杜1
赞同来自:
看laya.qqmini.js 开头的代码就知道了