[0]2.11打包华为rpk时,黑屏加载不出场景并且出现下面日志,有可能是跨域读取的问题,但是不知道怎么解决

2021-06-28 19:33:05.917 29916-29964/? D/jsLog: START JS FRAMEWORK 0.20.6, Build 2021-06-04 16:38.
2021-06-28 19:33:06.195 29965-30046/? D/jsLog: START JS FRAMEWORK 0.20.6, Build 2021-06-04 16:38.
2021-06-28 19:33:06.325 30006-30072/? D/jsLog: START JS FRAMEWORK 0.20.6, Build 2021-06-04 16:38.
2021-06-28 19:33:07.264 30170-30225/? D/jsLog: START JS FRAMEWORK 0.20.6, Build 2021-06-04 16:38.
2021-06-28 19:33:08.041 30006-30296/? I/jsLog: Enable batch GL commands optimization!
2021-06-28 19:33:08.051 30006-30296/? I/jsLog: ---------------------------------------------------------------------
2021-06-28 19:33:08.808 30006-30296/? I/jsLog: ShaderCompile use time:3  size:4811/5170
2021-06-28 19:33:08.818 30006-30296/? I/jsLog: ShaderCompile use time:4  size:1210/1061
2021-06-28 19:33:08.822 30006-30296/? I/jsLog: ShaderCompile use time:3  size:31744/1318
2021-06-28 19:33:08.893 30006-30296/? W/jsLog: [WARN]: file://version.json Request failed Status:0 text:
2021-06-28 19:33:08.894 30006-30296/? W/jsLog: [WARN]: [warn]Retry to load: version.json
2021-06-28 19:33:08.903 30006-30296/? W/jsLog: [WARN]: file://version.json Request failed Status:0 text:
2021-06-28 19:33:08.904 30006-30296/? W/jsLog: [WARN]: [error]Failed to load: version.json
2021-06-28 19:33:08.905 30006-30296/? W/jsLog: [WARN]: 资源版本清单文件不存在,不使用资源版本管理。忽略ERR_FILE_NOT_FOUND错误。
2021-06-28 19:33:08.913 30006-30296/? W/jsLog: [WARN]: file://fileconfig.json Request failed Status:0 text:
2021-06-28 19:33:08.914 30006-30296/? W/jsLog: [WARN]: [warn]Retry to load: fileconfig.json
2021-06-28 19:33:08.921 30006-30296/? W/jsLog: [WARN]: file://fileconfig.json Request failed Status:0 text:
2021-06-28 19:33:08.922 30006-30296/? W/jsLog: [WARN]: [error]Failed to load: fileconfig.json
2021-06-28 19:33:08.922 30006-30296/? I/jsLog: 11111111111111111111111111111111111
2021-06-28 19:33:08.945 30006-30296/? W/jsLog: [WARN]: file://loading.json Request failed Status:0 text:
2021-06-28 19:33:08.946 30006-30296/? W/jsLog: [WARN]: [warn]Retry to load: loading.scene
2021-06-28 19:33:08.966 30006-30296/? W/jsLog: [WARN]: file://loading.json Request failed Status:0 text:
2021-06-28 19:33:08.966 30006-30296/? W/jsLog: [WARN]: [error]Failed to load: loading.scene
2021-06-28 19:33:08.967 30006-30296/? I/jsLog: Fail to load: loading.scene
已邀请:

Laya_XS

赞同来自:

从上面的截图上看并不好分析问题的原因。从打印的信息上分析,你的资源应该是在rpk包内,但是为啥没有读取到包里的资源,这个还需要看代码分析。
方便提供个必现问题的laya工程,我们跑下看下问题。

要回复问题请先

商务合作
商务合作