Egret社区

build安卓app时,打开NativeRender。
  1. nativeAndroid.config.disableNativeRender = false;
复制代码

启动app报错黑屏,错误如下:
  1. 2019-12-02 11:12:14.819 11233-11254/? E/EgretNative: 2:ERROR:JS Error: TypeError: Cannot set property '0' of null

  2.         at Function.NativeDisplayObject.update (egret://native/NativeRenderBridge.js:112:18)

  3.         at Object.egret_native.updateNativeRender (egret://native/NativeRenderBridge.js:32:34)

  4.         at Function.NativeDisplayObject.setFilterPadding (egret://native/NativeRenderBridge.js:346:14)

  5.         at e.i.onPropertyChange (http://tool.egret-labs.org/Weiduan/game/js/egret.min.js:1:3672)

  6.         at e.setMatrix (http://tool.egret-labs.org/Weiduan/game/js/egret.min.js:3:4791)

  7.         at new e (http://tool.egret-labs.org/Weiduan/game/js/egret.min.js:3:4186)

  8.         at http://tool.egret-labs.org/Weiduan/game/js/main.min.js:6:36082

  9.         at http://tool.egret-labs.org/Weiduan/game/js/main.min.js:7:2

  10.         at Object.onSuccess (egret://native/Document.js:163:14)
复制代码

请问有谁遇到过吗?



分享到 :
0 人收藏

1 个回复

倒序浏览
hzj730  登堂入室 | 2019-12-2 16:04:58
补充升级到 lib 0.1.21后报错为:
  1. 2019-12-02 16:03:46.378 24328-24344/? E/EgretNative: 2:ERROR:JS Error: TypeError: Cannot set property '0' of null
  2.         at Function.h.update (egret://native/WebGame.js:1:45651)
  3.         at Object.A.updateNativeRender (egret://native/WebGame.js:1:44614)
  4.         at Function.h.setFilterPadding (egret://native/WebGame.js:1:48316)
  5.         at e.i.onPropertyChange (http://tool.egret-labs.org/Weiduan/game/js/egret.min.js:1:3672)
  6.         at e.setMatrix (http://tool.egret-labs.org/Weiduan/game/js/egret.min.js:3:4791)
  7.         at new e (http://tool.egret-labs.org/Weiduan/game/js/egret.min.js:3:4186)
  8.         at http://tool.egret-labs.org/Weiduan/game/js/main.min.js:6:37308
  9.         at http://tool.egret-labs.org/Weiduan/game/js/main.min.js:7:2
  10.         at Object.onSuccess (egret://native/WebGame.js:1:96697)
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号 )

Powered by Discuz! X3.4 © 2001-2019 Comsenz Inc.

返回顶部