From b13ac41b4f7c01619a88f2b60a026a36352d852e Mon Sep 17 00:00:00 2001 From: Handsome_Afraican_Man Date: Mon, 22 May 2023 19:40:59 +0800 Subject: [PATCH] IssueNo:#I77DQ9 Description:fix Bm Sig:bundleManager Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: zhouwenzhi --- .../reference/apis/js-apis-installer.md | 3 +++ .../reference/errorcodes/errorcode-bundle.md | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/zh-cn/application-dev/reference/apis/js-apis-installer.md b/zh-cn/application-dev/reference/apis/js-apis-installer.md index 9c375d0f57..a42897bcb2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -124,6 +124,7 @@ install(hapFilePaths: Array<string>, installParam: InstallParam, callback: | 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. | | 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). | | 17700044 | Failed to install the HAP because the isolationMode configured is not supported. | +| 17700047 | Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode. | **示例:** @@ -190,6 +191,7 @@ install(hapFilePaths: Array<string>, callback: AsyncCallback<void>): | 17700042 | Failed to install the HAP because of incorrect URI in the data proxy. | | 17700043 | Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). | | 17700044 | Failed to install the HAP because the isolationMode configured is not supported. | +| 17700047 | Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode. | **示例:** @@ -260,6 +262,7 @@ install(hapFilePaths: Array\, installParam?: InstallParam) : Promise\ 1. 请在设备中检查应用是否被企业设备管理禁止卸载安装。 + +## 17700047 要更新的应用版本没有大于当前版本 +**错误信息**
+Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode. + +**错误描述**
+安装应用时,要更新的应用版本没有大于当前版本。 + +**可能原因**
+1. 安装应用的版本号小于等于已安装应用的版本号。 +2. installFlag被设置为NORMAL,此时待更新的应用的版本号必须大于当前已安装的版本。 + +**处理步骤**
+1. 设置应用的版本号大于当前版本。 +2. 如果希望应用更新但版本号不升级,需要设置installFlag为REPLACE_EXISTING。 \ No newline at end of file -- GitLab