harmony 鸿蒙Creating a Project and Obtaining Source Code

  • 2022-12-05
  • 浏览 (774)

Creating a Project and Obtaining Source Code

When creating an OpenHarmony project, DevEco Device Tool automatically downloads the source code in one of the supported types.

Source code of an OpenHarmony stable version is downloaded from a mirror site. The following versions are available: OpenHarmony-v3.0.3-LTS, OpenHarmony-v3.1-Release, OpenHarmony-v3.2-Beta3, OpenHarmony-v3.2-Beta4, OpenHarmony-v3.2-Beta5, and OpenHarmony-v3.2-Release.

The source code from a mirror site is generally what’s available when the stable version is released. Therefore, it may be out of date. To acquire the latest source code of a version, follow the instructions in Acquiring Source Code from the Gitee Code Repository. After acquiring the source code, import it to DevEco Device Tool by following the instructions in Importing OpenHarmony Source Code.

The following describes how to download source code of the OpenHarmony Stable Version type. For details about how to download source code of other types, see HUAWEI DevEco Device Tool User Guide.

Prerequisites

A remote connection from the Windows environment to the Ubuntu environment has been set up through Remote SSH. For details, see Setting Up the Development Environment.

icon-note.gif NOTE

If a remote connection from Windows to Ubuntu is not available, the New Project function is restricted to HiSilicon enterprise users.

Procedure

  1. Open DevEco Device Tool, go to the home page, and click New Project.

en-us_image_0000001272258726

  1. On the project configuration wizard page, configure the project settings.
    • OpenHarmony Source Code: OpenHarmony version of the source code to download. Select a version under OpenHarmony Stable Version, such as OpenHarmony-v3.0.3-LTS, OpenHarmony-v3.1-Release, OpenHarmony-v3.2-Beta3, OpenHarmony-v3.2-Beta4, OpenHarmony-v3.2-Beta5, and OpenHarmony-v3.2-Release.
    • Project Name: project name.
    • Project Path: path for storing the project files.
    • SOC: supported SoC.
    • Board: development board.
    • Product: supported product.

en-us_image_0000001338187673

  1. Click Confirm to save the settings. DevEco Device Tool automatically starts to download the OpenHarmony source code. Considering the large size of the source package, the download process may take some time.

en-us_image_0000001338536201

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Getting Started

harmony 鸿蒙Build Form Factors

harmony 鸿蒙Getting Started with the Standard System with Hi3516 (IDE Mode)

harmony 鸿蒙Getting Started with the Standard System with Hi3516 (CLI Mode)

harmony 鸿蒙Hi3516 Development Board

harmony 鸿蒙Hi3861 Development Board

harmony 鸿蒙RK3568 Development Board

harmony 鸿蒙Building Source Code

harmony 鸿蒙Burning an Image

harmony 鸿蒙Writing a Hello World Program

0  赞