HarmonyOS Application Development Guide: Setting Up the IDE, Creating Projects, and Running the TV Emulator
This guide walks through installing and configuring the HarmonyOS development environment, creating various types of TV and wearable applications, downloading the necessary SDK and Gradle files, and successfully launching a TV emulator to run and test the created app.
Author: -个俗人 (source: https://my.oschina.net/u/169565/blog/4557279)
Prerequisite
Official Website
https://www.harmonyos.com
IDE Downloads
Source code compilation download: https://device.harmonyos.com/cn/ide Development application download: https://developer.harmonyos.com/cn/develop/deveco-studio#download
Source Code
https://device.harmonyos.com/cn/docs/start/get-code/oem_sourcecode_guide-0000001050769927
Application Development
During installation, the setup prompts to download the SDK; cancel the prompt, manually search for the SDK, and set a custom SDK path. All SDK components can be selected for automatic download.
Creating a Project
When creating a new project, three types are currently supported:
TV Device Application
Wearable Device Application
Lite Wearable Application
Create TV Project (Java)
During project creation, Gradle 5.4.1 is downloaded (slowly). The settings allow comprehensive configuration, including switching the Gradle source to Huawei’s domestic mirror.
Downloading the Emulator
Confirm the download dialog to start downloading the emulator (download speed may be slow; retry if necessary).
After refreshing, log in with a Huawei account (use the Windows built‑in browser instead of Chrome to avoid authorization issues).
Complete real‑name authentication (bank card verification is fast) and grant the required permissions.
After successful authorization and agreement acceptance, the list of available emulators appears.
The TV emulator starts, and running the project displays the emulator screen, indicating a successful run.
End of guide.
Architecture Digest
Focusing on Java backend development, covering application architecture from top-tier internet companies (high availability, high performance, high stability), big data, machine learning, Java architecture, and other popular fields.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.