Get started with Hongmeng software development and configuration tutorial, how to run the first helloworld

Recently, Huawei Hongmeng os 2.0 is officially open sourced. Regarding Hongmeng’s tutorials, I think some of the official documents are not clear. It may be quick for old drivers with Android development, but it is also a bit for the newbies who do not have Android development experience. headache. So I decided to write a tutorial to help you get started with Hongmeng development!

1. First of all, we must download the official development tools:

The link is as follows: https://developer.harmonyos.com/cn/develop/deveco-studio#download

You will be prompted to download the SDK during installation. If you don't want to be too frustrated, just download it by default.

Of course, if you want to toss, click Cancel, search for SDK, and re-define SDK path.

 

I put all the SDKs in accordance with the above picture, tick them and they will be downloaded automatically.

 

The next step is to create the project

Divided into three kinds of equipment, TV equipment, wearable wearable application, LIte wearable application

 

I created a TV project (Java) and chose a list template. (Be sure to remember the path of the project, in case you want to delete it later, the folder location cannot be found)

Download gradle-5.4.1-all.zip and wait slowly, be sure not to disconnect the network, and be sure not to disconnect the network. The download is successful as shown below:

 

Next download the simulator

 

Clicking will automatically enter into the Huawei Development Center. First, you must register a Huawei account and join the developer program. (There is a pit here. If you use Google Chrome by default, authentication will fail. Use the browser that comes with Windows to log in. )

Developers need real-name authentication, and I use a bank card to verify the speed very fast, basically in a few minutes.

Successful authentication:

Agree to the agreement:

Available emulators appeared

The emulator started

Run the project:

helloworld runs successfully. This is the complete tutorial of Hongmeng development and configuration. (The official has not yet opened the mobile phone simulator and development, I heard that it will be open in December)

Guess you like

Origin blog.csdn.net/qq_43513350/article/details/108566038