To start developing apps for HarmonyOS using ArkTS, follow these steps:
Set Up Your Development Environment:
- Ensure your computer runs Windows, macOS, or Linux with at least 16GB RAM.
- Download and install DevEco Studio, Huawei's official IDE for HarmonyOS development.
- Use a real device like Mate 60 or the official emulator for testing.
Learn ArkTS:
- ArkTS is a superset of TypeScript, recommended for HarmonyOS development.
- Familiarize yourself with ArkTS through official documentation and resources.
Select API Version:
- Start with API version 12, as it is the officially promoted version.
Create Your First ArkTS Application:
- Use the Stage model architecture.
- Familiarize yourself with key configuration files like
app.json5
and directory structures.
Development Tips:
- Use the Previewer in DevEco Studio for real-time page previews.
- For navigation, use the Navigation component instead of traditional routers.