Mobile Development 5 min read

Step-by-Step Guide to Running a Hello World Application on Huawei HarmonyOS 2.0

This article provides a detailed tutorial on setting up the HarmonyOS 2.0 development environment, downloading the IDE and source code, configuring the SDK, creating various types of projects (TV, Wearable, Lite Wearable), installing the emulator, and finally running a Hello World app, with many screenshots and practical tips.

Top Architect
Top Architect
Top Architect
Step-by-Step Guide to Running a Hello World Application on Huawei HarmonyOS 2.0

The article introduces Huawei HarmonyOS 2.0, which has been open‑sourced, and shares the author’s experience of following the official tutorial to create a first "Hello World" application, noting the similarity to Android development.

Source code can be obtained from https://openharmony.gitee.com . The official website is https://www.harmonyos.com , and the IDE download page is https://device.harmonyos.com/cn/ide . The development studio can be downloaded from https://developer.harmonyos.com/cn/develop/deveco-studio#download . The source‑code repository address is https://device.harmonyos.com/cn/docs/start/get-code/oem_sourcecode_guide-0000001050769927 .

During IDE installation, the installer may prompt to download the SDK; the user should cancel, then manually set a custom SDK path and let the IDE download the required components automatically.

When creating a new project, three template types are available: TV device application, Wearable application, and Lite Wearable application. The author chose the TV template (Java) and selected a list‑style project.

The build process downloads gradle-5.4.1-all.zip , which can be slow; the default download location is shown in the screenshots. After the Gradle download completes, the project configuration is switched to the domestic Huawei repository.

To run the app, the emulator must be installed. The author downloaded the emulator, logged in with a Huawei account (noting that using Chrome may cause authorization failure, so the Windows built‑in browser works better), and completed the real‑name authentication quickly via bank‑card verification.

After authorizing the IDE, the available emulators are listed; the TV emulator is selected, started, and the Hello World app runs successfully, as shown in the final screenshots.

The author concludes that the whole process feels very similar to Android development and expresses surprise at the ease of getting started with HarmonyOS.

Mobile DevelopmentHarmonyOStutorialIDEApp Developmentemulator
Top Architect
Written by

Top Architect

Top Architect focuses on sharing practical architecture knowledge, covering enterprise, system, website, large‑scale distributed, and high‑availability architectures, plus architecture adjustments using internet technologies. We welcome idea‑driven, sharing‑oriented architects to exchange and learn together.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.