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 9c375d0f575feaf32e9f9c5de2f9c7ba9e958a2f..a42897bcb27dde426ab7734dc8e694e84077054c 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