“This is the third day of my participation in the Gwen Challenge in November. Check out the details: The last Gwen Challenge in 2021.”

1. Pre-preparation

Hongmeng development official website

www.harmonyos.com/cn/develop

Document overview, such as architecture

Developer.harmonyos.com/cn/document…

Development document address

Developer.harmonyos.com/cn/docs/doc…

Before carrying out hongmeng development, it is necessary to register an account with Huawei and conduct real-name authentication. The authentication methods include ID card authentication and bank card authentication. The official recommendation is to use bank card authentication, which is fast. The effect of the certification is as follows:

Operating Environment Requirements

  • Operating system: Windows10 64-bit
  • Memory: 8GB or above
  • Hard disk: 100GB or higher
  • Resolution: 1280*800 pixels and above

Download DevEco Studio software

HUAWEI DevEco Studio (click the link to download the tool, DevEco Studio for short) is a one-stop integrated development environment (IDE) based on the Open source version of IntelliJ IDEA Community for HUAWEI terminals in all scenarios and multiple devices. HarmonyOS provides E2E application development services for developers to create, develop, compile, debug, and publish project templates. By using DevEco Studio, developers will be able to develop HarmonyOS ‘distributed capabilities more efficiently, increasing innovation efficiency.

Download address (available for Windows and Mac) :

It is recommended to use the Release version for more stability. Beta versions are also available for those who need to try out new features.

Developer.harmonyos.com/cn/develop/…

The introduction of development tools on the official website is as follows:

  • Multi-device unified development environment: Support application development for a wide range of HarmonyOS devices, including Phone, Tablet, Car, Smart Screen, Smart Wearable, Lightweight Smart Wearable and Smart Vision devices.
  • Support multi-language code development and debugging: Includes Java, XML (Extensible Markup Language), C/C++, JS (JavaScript), CSS (Cascading Style Sheets), and HML (HarmonyOS Markup) Language).
  • Support FA (Feature Ability) and PA (Particle Ability) rapid development: Quickly create FA/PA project templates through the project wizard, and Package them into HAP (HarmonyOS Ability Package) with one click.
  • Support distributed multi-application development: one project and one piece of code can run across devices, support real-time preview of interfaces on different devices and differentiated development, to maximize code reuse.
  • Multi-device simulator support: Simulator resources of multiple devices are provided, including simulators of mobile phones, tablets, vehicles, smart screens and smart wearable devices, which are convenient for developers to debug efficiently.
  • Supports multi-device preview: provides JS and Java preview functions to view the application layout effect in real time. Supports real-time preview and dynamic preview. It also supports multi-device preview to view the same layout file on different devices.

Three, installation steps

Unpack the installation package, run the EXE file, and click Next

Select the installation path without Chinese characters or Spaces, and click Next

Select Create desktop shortcut and click Next

This step does not need to be modified. Click Install to complete the installation

Optionally check to run DevEco Studio and click Finish

Choose something

NPM Registry does not need to be modified. Click Start Using DevEco Studio

Select the installation directory of hongmeng SDK, it is recommended to create files standardized, convenient management, click Next

You need to download Previewer, Java, Toolchains, Js and other SDK Componet, click Next directly

Select Agreement, agree Harmony SDK License Agreement, and click Next

Waiting for download, time a little bit longer (note that the company’s network may appear cannot download, download website provides the way of agency, to solve the problem, address: developer.harmonyos.com/cn/docs/doc…).

When you see Done, the download is complete and click Finish

The installation is complete

4. Environment variable configuration

Finally, before starting development, configure the environment variables to facilitate further development, right click my computer, click Properties

Click Advanced System Settings

Click on environment variables

Adding user variables

Variable name: HDC_SERVER_PORT, variable value: 7035

Click OK on the three pages one by one. The installation is complete.