在TS中使用forge-node,测试网页端没有问题,打包到安卓后报错 [ERROR]: (see stack) Uncaught TypeError: Cannot read property ‘getBytesSync’ of undefined [0]t.ClientEncrypt@assets/main/index.ff77e.jsc:28996
08-14 20:29:47.930 2636 2675 D jswrapper: [1]t.SendHttpRequest@assets/main/index.ff77e.jsc:28942
08-14 20:29:47.930 2636 2675 D jswrapper: [2]n.RequestClientConfig@assets/main/index.ff77e.jsc:34881
08-14 20:29:47.930 2636 2675 D jswrapper: [3]n.LoadFirstConfigSuccess@assets/main/index.ff77e.jsc:34857
08-14 20:29:47.930 2636 2675 D jswrapper: [4]n.LoadFirstConfig@assets/main/index.ff77e.jsc:34816
08-14 20:29:47.930 2636 2675 D jswrapper: [5]anonymous@assets/main/index.ff77e.jsc:34803
08-14 20:29:47.930 2636 2675 D jswrapper: [6]anonymous@src/cocos2d-jsb.4af5d.jsc:18263
08-14 20:29:47.930 2636 2675 D jswrapper: [7]anonymous@src/cocos2d-jsb.4af5d.jsc:38085
08-14 20:29:47.930 2636 2675 D jswrapper: [8]fireTimeout@jsb-adapter/jsb-builtin.js:1889
08-14 20:29:47.930 2636 2675 D jswrapper: [9]tick@jsb-adapter/jsb-builtin.js:1857
这代码第一句就错了let aesKeyBytes = APP.Forge.random.getBytesSync(16);