为什么cocos creator发布的游戏在微信小游戏开发工具的真机调试下报4930错误?【已解决】

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 17:28 3084 0 全屏看文

AI助手支持GPT4.0

为什么cocos creator发布的游戏在微信小游戏开发工具的真机调试下报4930错误?【已解决】

问题已解决:图片超过2048x2048


微信客户端:7.0.16

基础库版本:2.12.0[436]

安卓:小米8 MIUI 11.0.4

类型:小游戏

没有分包

在微信开发者工具的模拟器上可以正常运行,但转到真机时就报错。


图片加载失败!

game.js:3956 ERROR 4930, please go to https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md#4930 to see details. Arguments: wxfile://tmp_9df2b8da010f425435f5347bee2494262b9cddc7f488e222.png Error: ERROR 4930, please go to https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md#4930 to see details. Arguments: wxfile://tmp_9df2b8da010f425435f5347bee2494262b9cddc7f488e222.png

    at HTMLImageElement.o (https://usr/game.js:3956:204240)

还有一堆VM59:164 Error: not node js file system!path:assets/internal/import/07/07ce7530a.d804b.json; go __invokeHandler__ 的错误!

The problem has been solved: the picture exceeds 2048x2048 wechat client: 7.0.16 basic library version: 2.12.0 [436] Android: Xiaomi 8 MIUI 11.0.4 type: the small game is not sub contracted and can run normally on the simulator of wechat developer tool, but an error is reported when it is transferred to the real machine. Image loading failed! game.js:3956 ERROR 4930, please go to https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md#4930 to see details. Arguments: wxfile://tmp_ 9df2b8da010f425435f5347bee2494262b9cddc7f488e222.png Error: ERROR 4930, please go to https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md#4930 to see details. Arguments: wxfile://tmp_ 9df2b8da010f425435f5347bee2494262b9cddc7f488e222.png at HTMLImageElement.o ( https://usr/game.js : 3956:204240) and vm59:164 error: not node JS file system! path:assets/internal/import/07/07ce7530a.d804b.json; go __ invokeHandler__ The mistake of!

回答:

Splash:

补充:小米 8手机

微信客户端:7.0.16

-EOF-

AI助手支持GPT4.0