[LayaAir 1.0]Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}
span.s1 {font: 12.0px '.PingFang SC'}
12-09 22:04:33.105 12728-12832/? E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.ProcessInfo,methodName:getTotalMem
>>>>>>>>>>>>before
12-09 22:04:33.106 12728-12832/? E/LayaBox: >>>>>>>>>>>>after
12-09 22:04:33.106 12728-12832/? I/LayaBox: found the file in the package:app.json
12-09 22:04:33.108 12728-12832/? I/LayaBox: require(/sdcard/layabox/scripts/scripts/index.js)
12-09 22:04:33.109 12728-12832/? I/LayaBox: require(/sdcard/layabox/scripts/index.js)
12-09 22:04:33.110 12728-12832/? I/LayaBox: found the file in the package:scripts/index.js
12-09 22:04:33.115 12728-12832/? I/LayaBox: ======================================================
LAYA CONCH
runtimeversion:android-conch5-1.0.1
jsversion:2.1.3.1
isplug:false
======================================================
require(/sdcard/layabox/scripts/async.js)
found the file in the package:scripts/async.js
12-09 22:04:33.119 12728-12832/? I/LayaBox: loadURL:https://h5.mntgame.com/index.html
12-09 22:04:33.123 12728-12832/? I/LayaBox: setCachePath:/data/user/0/com.shcshy.mahjong//LayaCache//appCache/
found the file in the package:cache/https.__h5.mntgame.com/assetsid.txt
read index:/data/user/0/com.shcshy.mahjong//LayaCache//appCache/6df04d2f/filetable.txt
12-09 22:04:33.129 12728-12832/? I/LayaBox: require(/sdcard/layabox/scripts/config.js)
found the file in the package:scripts/config.js
12-09 22:04:33.132 12728-12832/? I/LayaBox: JSRuntime::callMethod {}
12-09 22:04:33.132 12728-12832/? I/LayaBox: JSRuntime::callMethod {}
12-09 22:04:33.136 12728-12820/? I/LayaBox: Download [ ]:https://h5.mntgame.com/update/ ... 48953
12-09 22:04:33.137 12728-12832/? I/LayaBox: >>>>>>>>>>>>>>>>innerWidth:1920innerHeight:1080
12-09 22:04:41.659 12728-12820/? W/LayaBox: download error: timeout, dt=8,opttimeout=1798
12-09 22:04:41.659 12728-12820/? I/LayaBox: Downloaded https://h5.mntgame.com/update/ ... 53%40 s=0 l=0
12-09 22:04:41.669 12728-12832/? I/LayaBox: onerror UnknownError
assetsid old:bb58f3754dbd8179dfa80cb2e0351890 new:null
12-09 22:04:41.670 12728-12832/? I/LayaBox: onLayaInitError error=Update DCC get assetsid error
init dcc fail
span.s1 {font: 12.0px '.PingFang SC'}
12-09 22:04:33.105 12728-12832/? E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.ProcessInfo,methodName:getTotalMem
>>>>>>>>>>>>before
12-09 22:04:33.106 12728-12832/? E/LayaBox: >>>>>>>>>>>>after
12-09 22:04:33.106 12728-12832/? I/LayaBox: found the file in the package:app.json
12-09 22:04:33.108 12728-12832/? I/LayaBox: require(/sdcard/layabox/scripts/scripts/index.js)
12-09 22:04:33.109 12728-12832/? I/LayaBox: require(/sdcard/layabox/scripts/index.js)
12-09 22:04:33.110 12728-12832/? I/LayaBox: found the file in the package:scripts/index.js
12-09 22:04:33.115 12728-12832/? I/LayaBox: ======================================================
LAYA CONCH
runtimeversion:android-conch5-1.0.1
jsversion:2.1.3.1
isplug:false
======================================================
require(/sdcard/layabox/scripts/async.js)
found the file in the package:scripts/async.js
12-09 22:04:33.119 12728-12832/? I/LayaBox: loadURL:https://h5.mntgame.com/index.html
12-09 22:04:33.123 12728-12832/? I/LayaBox: setCachePath:/data/user/0/com.shcshy.mahjong//LayaCache//appCache/
found the file in the package:cache/https.__h5.mntgame.com/assetsid.txt
read index:/data/user/0/com.shcshy.mahjong//LayaCache//appCache/6df04d2f/filetable.txt
12-09 22:04:33.129 12728-12832/? I/LayaBox: require(/sdcard/layabox/scripts/config.js)
found the file in the package:scripts/config.js
12-09 22:04:33.132 12728-12832/? I/LayaBox: JSRuntime::callMethod {}
12-09 22:04:33.132 12728-12832/? I/LayaBox: JSRuntime::callMethod {}
12-09 22:04:33.136 12728-12820/? I/LayaBox: Download [ ]:https://h5.mntgame.com/update/ ... 48953
12-09 22:04:33.137 12728-12832/? I/LayaBox: >>>>>>>>>>>>>>>>innerWidth:1920innerHeight:1080
12-09 22:04:41.659 12728-12820/? W/LayaBox: download error: timeout, dt=8,opttimeout=1798
12-09 22:04:41.659 12728-12820/? I/LayaBox: Downloaded https://h5.mntgame.com/update/ ... 53%40 s=0 l=0
12-09 22:04:41.669 12728-12832/? I/LayaBox: onerror UnknownError
assetsid old:bb58f3754dbd8179dfa80cb2e0351890 new:null
12-09 22:04:41.670 12728-12832/? I/LayaBox: onLayaInitError error=Update DCC get assetsid error
init dcc fail
没有找到相关结果
已邀请:
2 个回复
郭兆奎
赞同来自: layabox
一个可能的原因(有cdn的情况):
layadcc . 后,很多客户端会检测到热更了,因此这期间可能会有大量回源请求,源站服务器压力大增,而assetsid的请求都是直接访问源站的(url特意加了随机避免缓存),因此如果源站压力大的话,可能导致请求失败。看这里的错误也是请求超时了,你们可以看看当时的服务器流量是否饱和,再想法解决一下。
如果服务器并没有什么压力,就需要继续找其他原因。
layabox
赞同来自: 136*****813
index.js里搜这个
如果是安卓项目,index.js文件在layaconch.jar里,可以把这个layaconch.jar改名为layaconch.zip。把index.js解压出来,修改后,再拖回到压缩包里。