错误信息
The specified bundle name is not found.
错误描述
调用查询等接口时,传入的bundleName不存在。
可能原因
处理步骤
错误信息
The specified module name is not found.
错误描述
调用查询或者免安装相关接口时,传入的moduleName不存在。
可能原因
处理步骤
错误信息
The specified ability name is not found.
错误描述
调用查询等接口时,传入的abilityName不存在。
可能原因
处理步骤
错误信息
The specified user ID is not found.
错误描述
调用与用户相关接口时,传入的用户不存在。
可能原因
处理步骤
错误信息
The specified app ID is empty string.
错误描述
调用appControl模块中的相关接口时,传入的appId为空字符串。
可能原因
传入的appId为空字符串。
处理步骤
检查appId是否为空字符串。
错误信息
The specified permission is not found.
错误描述
调用bundleManager模块中的getPermissionDef接口时,传入的权限不存在。
可能原因
处理步骤
错误信息
The specified device ID is not found.
错误描述
调用distributedBundle模块相关接口时,传入的设备id有误。
可能原因
处理步骤
错误信息
Failed to install the HAP because the HAP fails to be parsed.
错误描述
调用installer模块中的install接口时,传入的HAP解析失败。
可能原因
处理步骤
错误信息
Failed to install the HAP because the HAP signature fails to be verified.
错误描述
调用installer模块中的install接口时,签名校验失败导致应用安装失败。
可能原因
处理步骤
错误信息
Failed to install the HAP because the HAP path is invalid or the HAP is too large.
错误描述
调用installer模块中的install接口时,安装包路径无效或者文件过大导致应用安装失败。
可能原因
处理步骤
错误信息
Failed to install the HAPs because they have different configuration information.
错误描述
调用installer模块中的install接口时,多个HAP配置信息不同导致应用安装失败。
可能原因
多个hap包中配置文件中app标签下面的字段信息不一致。
处理步骤
确认多个HAP中配置文件app下面的字段是否一致。
错误信息
Failed to install the HAP because of insufficient system disk space.
错误描述
调用installer模块中的install接口时,系统磁盘空间不足导致应用安装失败。
可能原因
系统空间不足。
处理步骤
确认系统是否有足够的空间。
错误信息
Failed to install the HAP since the version of the HAP to install is too early.
错误描述
调用installer模块中的install接口时,新安装的应用版本号低于已安装的版本号导致应用安装失败。
可能原因
新安装的应用版本号低于已安装的版本号。
处理步骤
确认新安装的应用版本号是否不低于已安装的同应用版本号。
错误信息
The preinstalled app cannot be uninstalled.
错误描述
调用installer模块中的uninstall接口卸载预置应用时,无法卸载。
可能原因
处理步骤
错误信息
The specified uid is invalid.
错误描述
调用bundleManager模块中的getBundleNameByUid接口时,指定的uid无效。
可能原因
处理步骤
错误信息
The input source file is invalid.
错误描述
调用bundleManager模块中的getBundleArchiveInfo接口时,传入的HAP路径无效。
可能原因
处理步骤
错误信息
The specified default app does not exist.
错误描述
调用defaultAppManager模块中的getDefaultApplication接口时,指定的默认应用不存在。
可能原因
设备没有设置对应的默认应用。
处理步骤
确认设备是否设置了对应的默认应用。
错误信息
Failed to get the profile because there is no profile in the HAP.
错误描述
调用查询profile文件的相关接口时,没有相应的配置文件。
可能原因
处理步骤
错误信息
The specified type is invalid.
错误描述
调用defaultAppManager模块的相关接口时,输入的type无效。
可能原因
处理步骤
错误信息
The specified bundle is disabled.
错误描述
当调用查询应用的相关信息接口时,指定应用被禁用。
可能原因
设备上对应的应用已经被禁用,无法查询。
处理步骤
确认设备上对应的应用是否被禁用。
错误信息
The distributed service is not running.
错误描述
当调用distributedBundle模块的相关接口时,分布式服务未启动。
可能原因
设备未组网。
处理步骤
确认设备是否组网成功。
错误信息
The ability does not match the type.
错误描述
当调用defaultAppManager模块中的setDefaultApplication接口时,输入的ability与type不匹配。
可能原因
输入的ability和type拼写有误。
处理步骤
确认输入的ability和type拼写是否正确。
错误信息
The specified ability is disabled.
错误描述
当调用查询ability相关信息的接口时,指定的ability被禁用。
可能原因
指定的ability被禁用。
处理步骤
确认指定的ability是否被禁用,可以使用bm工具命令查询对应的应用信息。
错误信息
The specified bundle does not support clearing of cache files.
错误描述
当调用bundleManager模块中的cleanBundleCacheFiles接口时,指定的应用不支持清除缓存文件。
可能原因
指定的应用为系统应用且在签名证书中配置了不能清除数据(AllowAppDataNotCleared)的字段。
处理步骤
1.确认指定的应用是否为系统应用,可以使用bm工具命令查询对应的应用信息,查看isSystemApp是否为true。
2.确认指定的应用是否配置了能清除缓存(AllowAppDataNotCleared)的字段,可以使用bm工具命令查询对应的应用信息,查看userDataClearable是否为true。