安裝wgt文件失败[-1205]:WGT安装包中manifest.json文件的version版本不匹配

要加上 force:true

			plus.runtime.install(
				path, {force:true},
				function() {
					plus.nativeUI.closeWaiting();
					// console.log('安装wgt文件成功!');
					plus.nativeUI.alert('应用更新完成', function() {
						//'应用更新完成!'
						plus.runtime.restart();
					});
				},
				function(e) {
					plus.nativeUI.closeWaiting();
					plus.nativeUI.alert('更新失败' + '[' + e.code + ']:' + e.message); //更新失败
				}
			);

猜你喜欢

转载自blog.csdn.net/weixin_55552785/article/details/119387888