未验证 提交 86a928c4 编写于 作者: O openharmony_ci 提交者: Gitee

!17606 文档:包管理新增js错误码

Merge pull request !17606 from zhouwenzhi/master
......@@ -61,7 +61,8 @@
]
},
"targetModuleName": "feature",
"targetPriority": 50
"targetPriority": 50,
"isolationMode": "nonisolationFirst"
}
```
......@@ -93,6 +94,7 @@ module.json5配置文件包含以下标签。
| [dependencies](#dependencies标签)| 标识当前模块运行时依赖的共享库列表。| 对象数组 | 该标签可缺省,缺省值为空。 |
| targetModuleName | 标识当前包所指定的目标module, 标签值采用字符串表示(最大长度31个字节),该名称在指定的应用中要唯一。|字符串|该标签可缺省,缺省时当前包为非overlay特性的Module。|
| targetPriority | 标识当前Module的优先级, 当targetModuleName字段配置之后,当前Module为overlay特征的Module, 该标签的额取值范围为1~100|数值|该标签可缺省, 缺省值为1。|
| isolationMode | 标识当前Module的多进程配置项。类型有4种,分别:<br/>-&nbsp;nonisolationFirst:优先在非独立进程中运行。<br/>-&nbsp;isolationFirst:优先在独立进程中运行。<br/>-&nbsp;isolationOnly:只在独立进程中运行。<br/>-&nbsp;nonisolationOnly:只在非独立进程中运行。 |字符串|该标签可缺省, 缺省值为nonisolationFirst。|
## deviceTypes标签
......
......@@ -121,6 +121,7 @@ install(hapFilePaths: Array&lt;string&gt;, installParam: InstallParam, callback:
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700044 | Failed to install because the isolationMode does not match the system. |
**示例:**
......@@ -184,6 +185,7 @@ install(hapFilePaths: Array&lt;string&gt;, callback: AsyncCallback&lt;void&gt;):
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700044 | Failed to install because the isolationMode does not match the system. |
**示例:**
......@@ -251,6 +253,7 @@ install(hapFilePaths: Array\<string\>, installParam?: InstallParam) : Promise\<v
| 17700036 | Failed to install the HSP because lacks appropriate permissions. |
| 17700039 | Failed to install because disallow install a shared bundle by hapFilePaths. |
| 17700041 | Failed to install because enterprise device management disallow install. |
| 17700044 | Failed to install because the isolationMode does not match the system. |
**示例:**
......
......@@ -544,4 +544,17 @@ The specified bundle is a shared bundle which cannot be uninstalled.
1. 通过-s参数指定卸载的应用为共享库应用。
2. 通过UninstallParam参数的bundleName及versionCode指定卸载的共享库的包名及版本。
## 17700044 安装包设置的多进程配置项与系统配置项设置矛盾
**错误信息**<br/>
Failed to install because the isolationMode does not match the system.
**错误描述**<br/>
安装应用时,设置的isolationMode与系统配置项所允许的系统配置项矛盾。
**可能原因**<br/>
1. 设备支持隔离模式,即supportIsolationMode为true时,HAP配置的isolationMode为nonisolationOnly。
2. 设备不支持隔离模式,即supportIsolationMode为false时,HAP配置的isolationMode为isolationOnly。
**处理步骤**<br/>
1. 按照设备的隔离模式正确配置HAP字段isolationMode。
<!--no_check-->
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册