[LayaAirIDE3]发布支付宝小游戏分包问题
比如加载分包Sounds
发布后在支付宝ide里没法运行,分包加载报错:
Failed to load 'Sounds/fileconfig.json'
[APPX][Error] TypeError: Cannot read properties of null (reading 'files')
at eval (http://localhost:56882/sub/main/game.js:9390:17)
at https://native-game/native-gam ... 02695
真机调试没问题,但是加载分包内的文件会提示加载失败:native audio readFileSync failed, path=Sounds/bgm.mp3--errorMessage=指定的 filePath 文件不存在 Sounds/bgm.mp3 1726194241462
发布后在支付宝ide里没法运行,分包加载报错:
Failed to load 'Sounds/fileconfig.json'
[APPX][Error] TypeError: Cannot read properties of null (reading 'files')
at eval (http://localhost:56882/sub/main/game.js:9390:17)
at https://native-game/native-gam ... 02695
真机调试没问题,但是加载分包内的文件会提示加载失败:native audio readFileSync failed, path=Sounds/bgm.mp3--errorMessage=指定的 filePath 文件不存在 Sounds/bgm.mp3 1726194241462
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
layabox
赞同来自: