Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ccc1.10.2遇到ERROR_DOWNLOAD_MANIFEST怎么办? #20

Open
exe19890522 opened this issue May 7, 2019 · 1 comment
Open

ccc1.10.2遇到ERROR_DOWNLOAD_MANIFEST怎么办? #20

exe19890522 opened this issue May 7, 2019 · 1 comment

Comments

@exe19890522
Copy link

case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
this.panel.info.string = "Fail to download manifest file, hot update skipped.";
break;

请问上面的写法是正确的吗?
详细的报错请看这里:
http://www.cocoachina.com/bbs/read.php?tid=1793137&page=1&toread=1#tpc
麻烦帮忙看一下,谢谢。

因为下载错误,我现在已经用downFile2Local的形式,已经能下载到文件了,但是我不知道怎么把缓存文件夹里面的文件覆盖到程序的文件夹啊。(我是在电脑上自带模拟器测试的,缓存地址是模拟器主程序目录下面的一个_temp文件夹,但是明显跟项目的路径差很远的,我不知道手机上会是是什么样子)

@xianyinchen
Copy link
Collaborator

从路径信息看下,是缓存路径没有配置,请参考下面这个设置
https://github.com/cocos-creator/tutorial-hot-update/blob/2.4.x/assets/scripts/module/HotUpdate.js#L418

this._storagePath = ((jsb.fileUtils ? jsb.fileUtils.getWritablePath() : '/') + 'blackjack-remote-asset');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants