打包apk,运行直接闪退,【附错误日志】

环境cocos Creator 2.0.4 Android Studio 3.2.1

求解决思路

错误日志打包.zip (5.9 KB)

换205正式版吧

检查一下 apk 内部,是不是资源没打包进去

是的话参考

https://forum.cocos.com/t/gradle-3-2-1-android-studio-3-2/68746/4?u=leda

这个我也遇到了,资源没打进去

11-06 23:27:58.580 5346-5367/com.haidi.llk E/jswrapper: ERROR: Uncaught TypeError: Cannot set property ‘string’ of null, location: src/project.7e328.js:0:0
STACK:
[0]t.time@src/project.7e328.js:612
[1]anonymous@src/project.7e328.js:607
[2]fireTimeout@jsb-adapter/jsb-builtin.js:2033
[3]tick@jsb-adapter/jsb-builtin.js:1995
11-06 23:27:58.580 5346-5367/com.haidi.llk E/jswrapper: [ERROR] (C:/CocosCreator/resources/cocos2d-x/cocos/scripting/js-bindings/jswrapper/v8/Object.cpp, 521): Invoking function (0xadbe54f0) failed!
11-06 23:27:58.596 5346-5367/com.haidi.llk E/jswrapper: ERROR: Uncaught TypeError: Cannot set property ‘string’ of null, location: src/project.7e328.js:0:0

重新发布了一下,然后AS提示Gradle提示升级,没管。现在能运行,但是进去了之后,屏幕一闪一闪的。还只有半屏

错误日志打包了打包日志.zip (20.4 KB)

H5的发布版本中,可以正常运行在各大浏览器上

可以正常用了,模拟器使用opengl模式渲染就好了,之前是Dx,改为opengl就正常了,模拟器是逍遥模拟器