在resources要放一份project与version文件打包
确认下打包后里面还有这个文件没有
有的,没有被删掉
//unpack/project project.manifest文件路径
cc.resources.load(‘unpack/project’, (err: any, res: cc.Asset) => {
if (err) {
console.error("No local manifest file found, hot update skipped.")
return;
}
this.manifestUrl = res;
然后
if (this._am.getState() === jsb.AssetsManager.State.UNINITED) {
// Resolve md5 url
var url = this.manifestUrl.nativeUrl;
this._am.loadLocalManifest(url);
}
this._am.getState()
这块是什么
// Init with empty manifest url for testing custom manifest
this._am = new jsb.AssetsManager(’’, this._storagePath, this.versionCompareHandle);
no local manifest file found error应该就是在new new jsb.AssetsManager时触发的,之前没在resources下放project与version文件的时候,下面的log.d还能打印,加入之后不打印了
我这个只是一般的热更时出现这个错误时的原因。看你的代码应该是大厅子游戏热更,这个应该是你们自己弄了套方案,只能自己跟下代码了。



