未验证 提交 2cf3a0a2 编写于 作者: O openharmony_ci 提交者: Gitee

!22535 [翻译完成】#I7PFJ5

Merge pull request !22535 from Annie_wang/PR21652A
...@@ -23,9 +23,13 @@ The **DataShareHelper** class fails to be created. ...@@ -23,9 +23,13 @@ The **DataShareHelper** class fails to be created.
**Solution** **Solution**
1. Obtain the correct URI. 1. Obtain the correct URI.
2. Check that the context of the stage model is used. 2. Check that the context of the stage model is used.
3. Check whether the client has the read or write permission on data. Perform the following steps: 3. Check whether the client has the read or write permission on data. Perform the following steps:
(1) Obtain the data provider bundle name in the path of the URI. For example, the bundle name in uri = "datashareproxy://com.acts.ohos.data.datasharetest/test" is **com.acts.ohos.data.datasharetest**. (1) Obtain the data provider bundle name in the path of the URI. For example, the bundle name in uri = "datashareproxy://com.acts.ohos.data.datasharetest/test" is **com.acts.ohos.data.datasharetest**.
(2) Obtain the configuration based on the bundle name. For example, run **bm dump --bundle-name com.acts.ohos.data.datasharetest** to obtain the **DataShareExtension** configuration, and check whether the data consumer has **readPermission** or **writePermission**. (2) Obtain the configuration based on the bundle name. For example, run **bm dump --bundle-name com.acts.ohos.data.datasharetest** to obtain the **DataShareExtension** configuration, and check whether the data consumer has **readPermission** or **writePermission**.
## 15700011 Failed to Add or Delete a Template ## 15700011 Failed to Add or Delete a Template
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册