[LayaAirIDE 2.0]构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function
03-07 10:05:32.702 31653-31703/com.mihe.carrom I/LayaBox: alert=apploader.js:4515:
TypeError: this._nativeObj.addGlobalValueDefine is not a function
return this._nativeObj.addGlobalValueDefine(modifyType, type, size, defaultData);
^^
TypeError: this._nativeObj.addGlobalValueDefine is not a function
at LayaGLContext.addGlobalValueDefine (apploader.js:4515:32)
at Function.LayaNative2D.__init__ (http://stand.alone.version/lib ... 020:45)
at Function.RunDriver.enableNative (http://stand.alone.version/lib ... 164:17)
at Object.Laya.init (http://stand.alone.version/libs/laya.core.js:273:14)
at Function.Laya3D.__init__ (http://stand.alone.version/libs/laya.d3.js:15004:8)
at http://stand.alone.version/lib ... 98:12
at Object.e.then (http://stand.alone.version/lib ... 40:104)
at Function.Laya3D.init (http://stand.alone.version/libs/laya.d3.js:15497:55)
at new Main (http://stand.alone.ve
构建APP时选择的单机版,Native版本是 release2.0.1 用Android Studio打出apk包,运行是报这个错误,进不去游戏,麻烦看一下是什么原因
TypeError: this._nativeObj.addGlobalValueDefine is not a function
return this._nativeObj.addGlobalValueDefine(modifyType, type, size, defaultData);
^^
TypeError: this._nativeObj.addGlobalValueDefine is not a function
at LayaGLContext.addGlobalValueDefine (apploader.js:4515:32)
at Function.LayaNative2D.__init__ (http://stand.alone.version/lib ... 020:45)
at Function.RunDriver.enableNative (http://stand.alone.version/lib ... 164:17)
at Object.Laya.init (http://stand.alone.version/libs/laya.core.js:273:14)
at Function.Laya3D.__init__ (http://stand.alone.version/libs/laya.d3.js:15004:8)
at http://stand.alone.version/lib ... 98:12
at Object.e.then (http://stand.alone.version/lib ... 40:104)
at Function.Laya3D.init (http://stand.alone.version/libs/laya.d3.js:15497:55)
at new Main (http://stand.alone.ve
构建APP时选择的单机版,Native版本是 release2.0.1 用Android Studio打出apk包,运行是报这个错误,进不去游戏,麻烦看一下是什么原因
引擎与native版本 需一致。
顶一下 我也是报这个错
我也是报这个错
我也是报这个错,求助啊。都找不到办法
打包遇到同样的问题
顶上去,让官方看到。这问题搞了好久了啊
用native 2.0.0版本构建 解决问题了
真的解决了。谢啦
同样遇到了这个问题
只能说laya这帮家伙也太不靠谱了。。。。
只能说laya这帮家伙也太不靠谱了。。。。
ios 也会遇到这个问题 用的是 native 2.1.0
2.2.0构建安卓的也是这个问题。2.0的就没问题