importing-an-openharmony-project.md 2.1 KB
Newer Older
N
NEEN 已提交
1 2 3 4
# Importing an OpenHarmony Project<a name="EN-US_TOPIC_0000001163914943"></a>

After the OpenHarmony SDK is configured, you can start developing your app only by  **importing a sample project**  to begin with.

D
duanxichao 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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.
N
NEEN 已提交
20 21 22

    ![](figures/en-us_image_0000001163835551.png)

D
duanxichao 已提交
23
3.  Go to  **common**  \>  **JsHelloWorld**  \>  **Next**.
N
NEEN 已提交
24

D
duanxichao 已提交
25
    ![](figures/en-us_image_0000001118201202.png)
N
NEEN 已提交
26

D
duanxichao 已提交
27
4.  Configure  **App Name**  and  **Project Location**  and click  **Finish**. Wait until the sample project is imported.
N
NEEN 已提交
28 29 30

    ![](figures/en-us_image_0000001163915521.png)

D
duanxichao 已提交
31
5.  Open the  **build.gradle**  file in the project and change the version number of the HAP plugin to  **2.4.4.3-RC**.
N
NEEN 已提交
32 33 34

    ![](figures/en-us_image_0000001117475776.png)

D
duanxichao 已提交
35
6.  Click  ![](figures/en-us_image_0000001163835553.png)  under  **Gradle**  in the upper right corner to sync the project again.
N
NEEN 已提交
36 37 38

    ![](figures/en-us_image_0000001117635680.png)

D
duanxichao 已提交
39
7.  When the project is successfully synced, you can develop your OpenHarmony app.
N
NEEN 已提交
40 41 42 43

    ![](figures/en-us_image_0000001163915523.png)