Mobile Development 5 min read

Step-by-Step Guide to Setting Up HarmonyOS 2.0 Development Environment and Running a Hello World App

This tutorial provides a comprehensive step‑by‑step guide to setting up the HarmonyOS 2.0 development environment, downloading the IDE and SDK, creating various app projects, configuring the emulator, and successfully running a Hello World application on a TV device.

Top Architect
Top Architect
Top Architect
Step-by-Step Guide to Setting Up HarmonyOS 2.0 Development Environment and Running a Hello World App

HarmonyOS 2.0 has been open‑sourced and the article walks the reader through the entire setup process, from downloading the official IDE and SDK to creating and running a simple “Hello World” application.

Source code : https://openharmony.gitee.com

1. Prerequisites

Visit the official HarmonyOS website ( https://www.harmonyos.com ) and download the IDE from https://device.harmonyos.com/cn/ide . The development studio can be obtained at https://developer.harmonyos.com/cn/develop/deveco-studio#download . The source code is available at https://device.harmonyos.com/cn/docs/start/get-code/oem_sourcecode_guide-0000001050769927 .

2. Installing the SDK

During installation the IDE may prompt to download the SDK; cancel the prompt, manually download the SDK, and set a custom SDK path. The required Gradle distribution (gradle‑5.4.1‑all.zip) is downloaded automatically, though the download can be slow.

3. Creating a project

When creating a new project three templates are available: TV device app (Java), Wearable app, and Lite Wearable app. The author chose the TV template and followed the wizard to generate the project.

4. Downloading and configuring the emulator

Download the emulator from the IDE; the download may be slow and may need to be retried. After download, launch the TV emulator.

5. Logging in and authorisation

Log in with a Huawei account (using the Windows built‑in browser to avoid Chrome authorization issues) and complete the real‑name verification (bank‑card verification is fast). Authorise the development environment.

6. Running the application

Build and run the project; the TV emulator starts and displays the “Hello World” output.

After a successful run the author notes the process was straightforward but time‑consuming, and encourages readers to try it themselves.

mobile developmentSDKHarmonyOSTutorialIDE setupemulator
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.