参考这个教程http://www.cocos.com/doc/tutorial/show?id=2756
配置了热更新的文件
{
“packageUrl” : “http://mugames.sinaapp.com/res”,
“remoteManifestUrl” : “http://mugames.sinaapp.com/res/project.manifest”,
“remoteVersionUrl” : “http://mugames.sinaapp.com/res/version.manifest”,
“version” : “1.0”,
“engineVersion” : “3.6”,
“groupVersions” : {
“1” : “1.0.1”
},
“assets” : {
“update1” : {
“path” : “res/HelloWorld.png”,
“md5” : “22ab0562266e356b16f17e49e2939eb9”,
“group” : “1”
}
},
“searchPaths” :
“res/”
]
}
热更新后报错
JS: 100%
JS: 100%
JS: 0%
JS: Start to update 1 files from remote package.
JS: Asset update error: update1, Unable to download file
JS: Update failed.
JS: Reach maximum fail count, exit update process
只下载了version.manifest,
另外project.manifest内容下载下来了,但是文件名是project.manifest.temp
资源文件res/HelloWorld.png是0KB