_am.retain() 报错

  • Creator 版本:2.0.9

  • 目标平台: Android / 模拟器

  • 详细报错信息,包含调用堆栈:

        console.log("热更新部分");
        var storagePath = ((jsb.fileUtils ? jsb.fileUtils.getWritablePath() : '/') + 'remote-asset');
        cc.log('Storage path for remote asset : ' + storagePath);
        cc.log('Local manifest URL : ' + this.manifestUrl);		
		this._am = new jsb.AssetsManager(this.manifestUrl, storagePath);
        var searchPaths = jsb.fileUtils.getSearchPaths();

        cc.log("搜索路径",searchPaths);
        this._am.retain();  
  • 错误信息:Simulator: E/jswrapper (271): ERROR: Uncaught TypeError: this._am.retain is not a function, location: assets/scripts/updata.js:0:0

有没有兄弟提供个简单点别那么多业务的热更新实例

把retain这行删掉就好了