[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包,运行是报这个错误,进不去游戏,麻烦看一下是什么原因
已邀请:

Aar0n

赞同来自:

引擎与native版本 需一致。

瓦力哇伊娃

赞同来自:

顶一下     我也是报这个错

赞同来自:

我也是报这个错

panda-星

赞同来自:

我也是报这个错,求助啊。都找不到办法

135*****932

赞同来自:

打包遇到同样的问题

panda-星

赞同来自:

顶上去,让官方看到。这问题搞了好久了啊

135*****932

赞同来自:

用native 2.0.0版本构建 解决问题了

panda-星

赞同来自:

真的解决了。谢啦

karin666

赞同来自:

同样遇到了这个问题
只能说laya这帮家伙也太不靠谱了。。。。

151*****306

赞同来自:

ios 也会遇到这个问题 用的是 native 2.1.0  

Laya新用户

赞同来自:

2.2.0构建安卓的也是这个问题。2.0的就没问题

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作