宁三石
宁三石
  • 发布:2015-08-25 12:17
  • 更新:2019-07-04 10:04
  • 阅读:2114

android版本热更新资源提示缺少统计模块

分类:HTML5+

资源热更新 提示 html5+runtime 缺少升级包manifest.json中的配置模块:statistic
但是友盟统计已经配置,且在友盟上能够看到正常的统计信息。
更新代码用的官方的demo中的例子

// 下载wgt文件
function downWgt(wgtUrl) {
plus.nativeUI.showWaiting("更新中...");
plus.downloader.createDownload(wgtUrl, {
filename: "_doc/update/"
}, function(d, status) {
if (status == 200) {
installWgt(d.filename); // 安装wgt包
} else {
mui.toast("更新失败");
storageDelItem()
}
plus.nativeUI.closeWaiting();
}).start();
}

// 更新应用资源
function installWgt(path) {
plus.nativeUI.showWaiting("更新中...");
plus.runtime.install(path, {}, function() {
plus.nativeUI.closeWaiting();
storageSaveItem("_newVer", newVer);
plus.runtime.restart();
}, function(e) {
plus.nativeUI.closeWaiting();
mui.toast("更新失败");
});
}

2015-08-25 12:17 负责人:无 分享
已邀请:
8***@qq.com

8***@qq.com

我也遇到这个问题,你解决了吗

hhyang

hhyang - 如有问题,请添加QQ1606726660 备注付费咨询

模块缺少 需要打勾

该问题目前已经被锁定, 无法添加新回复