提交 79078249 编写于 作者: D duanxichao

update 导入OpenHarmony工程

Signed-off-by: Nduanxichao <duanxichao@huawei.com>
上级 ed5eb83d
......@@ -2,27 +2,41 @@
After the OpenHarmony SDK is configured, you can start developing your app only by **importing a sample project** to begin with.
1. On the DevEco Studio welcome page, click **Import HarmonyOS Sample** to import a sample project.
Sample projects for OpenHarmony app development are supported. Import a sample project with the following description: **This sample is intended for novices at developing OpenHarmony applications.**. For example, the **JsHelloWorld** sample in the **common** category.
![](figures/en-us_image_0000001165463605.png)
1. On the DevEco Studio welcome page, go to **Configure** \(or ![](figures/en-us_image_0000001118018452.png) icon\) \> **Settings** \> **Version Control** \> **Git** and click **Test** to check whether the Git tool is installed.
- If the tool has been installed, import a sample by referring to [2](#li5947194711181).
![](figures/en-us_image_0000001118018088.png)
- If the tool hasn't been installed, click **Download and Install**. DevEco Studio will automatically download and install it. Then import a sample by referring to [2](#li5947194711181).
![](figures/en-us_image_0000001164498191.png)
2. <a name="li5947194711181"></a>On the DevEco Studio welcome page, click **Import HarmonyOS Sample** to import a sample project.
![](figures/en-us_image_0000001163835551.png)
2. Go to **ability** \> **HelloWorld** and click **Next**.
3. Go to **common** \> **JsHelloWorld** \> **Next**.
![](figures/en-us_image_0000001117635678.png)
![](figures/en-us_image_0000001118201202.png)
3. Configure **App Name** and **Project Location** and click **Finish**. Wait until the sample project is imported.
4. Configure **App Name** and **Project Location** and click **Finish**. Wait until the sample project is imported.
![](figures/en-us_image_0000001163915521.png)
4. Wait until the project sync is indicated to be failed. Open the **build.gradle** file in the project and change the version number of the HAP plugin to **2.4.4.3-RC**.
5. Open the **build.gradle** file in the project and change the version number of the HAP plugin to **2.4.4.3-RC**.
![](figures/en-us_image_0000001117475776.png)
5. Click ![](figures/en-us_image_0000001163835553.png) under **Gradle** in the upper right corner to sync the project again.
6. Click ![](figures/en-us_image_0000001163835553.png) under **Gradle** in the upper right corner to sync the project again.
![](figures/en-us_image_0000001117635680.png)
6. When the project is successfully synced, you can develop your OpenHarmony app.
7. When the project is successfully synced, you can develop your OpenHarmony app.
![](figures/en-us_image_0000001163915523.png)
......
......@@ -22,7 +22,7 @@ For details about how to use DevEco Studio, see [HUAWEI DevEco Studio User Guid
- OpenHarmony supports only app development in JS.
- Developing OpenHarmony apps in DevEco Studio is supported on Windows.
DevEco Studio serves as a development tool for both OpenHarmony and HarmonyOS apps. Refer to the following table for descriptions about the IDE function differences between OpenHarmony and HarmonyOS.
DevEco Studio serves as a development tool for both OpenHarmony and HarmonyOS apps. Refer to the following table for descriptions about the functions not supported for OpenHarmony.
<a name="table852516933419"></a>
<table><thead align="left"><tr id="row1952618913415"><th class="cellrowborder" valign="top" width="29.882988298829883%" id="mcps1.1.4.1.1"><p id="p165268963418"><a name="p165268963418"></a><a name="p165268963418"></a>Feature</p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册