preface

This post has been posted on my Github blog. Welcome to my humble abode:

My GIthub blog

Learning map

image.png

First, why early tasteharmonyos?

wNlfxI.png

On September 10, Huawei announced at the HDC 2020 Conference that HarmonyOS 2.0 is officially open source, and has entered the Open Atom Foundation source code address: openHarmony.gitee.com. There are 134 repositories in total.

As soon as it was released, there was a lot of discussion among developers at home and abroad. Zhihu also became a hot topic, and various discussions emerged in several Android groups I was in.

We can’t help wondering, is the spring finally here for Chinese operating systems?

Of course not. In my opinion, Android will continue to be the most used operating system in the world for at least the next five years, but in the future, it is not clear that in 10 years, if the national level of policy promotion, then the speed will increase even more.

In the future, we still don’t know who will be the mainstream, but as geeks, we can give this system a try. After all, for us Android developers, this is still a matter of our jobs, not what others say.

So, for this opportunity, I’d like to take you hand in hand with HarmonyOS.

wNlxs0.png

Second, preparation

wNl3rV.gif
  • Id card/Bank card

The following real name will be used, but using DevEco Studio remote simulator requires huawei account for real name authentication

  • Registering a Huawei Account
  • Huawei account with real name

Recommend the use of bank card for verification, the author pro test, speed bar

3. Experience trip

3.1 installationDevEco Studio

  • Enter theHUAWEI DevEco Studio Product pageDownload,DevEco StudioThe installation package
wNlIqf.png
  • Double-click the downloaded”deveco-studio-xxxx.exe“, enter theDevEco StudioInstallation wizard: Select this option on the following installation options screenDevEco Studio launcherLater, clickNextUntil the installation is complete
wNlqiQ.png
  • If you see this screen, the initial installation is complete
wN1pZT.png

3.2 startDevEco Studio

wN1CoF.png
  • Choose whether to import the configuration or not.
wN1eL6.png
  • Agree to a deal
wN1lJH.png
  • The installationSdk, click on thenextCan be
wN1Uw8.png
  • agreeSDKagreement

For the SDK, if you’ve already installed the Java development environment, you don’t have to click the download button

wN1wFg.png
  • Download, may be a little long, please wait patiently HHH
wN10YQ.png
  • Download complete,finishCan be
wN1gmV.png

3.3 the use ofDevEco Studio

  • Open theDevEco Studio
wN1fkF.png
  • If you have ajdkIf not, clickConfigure/Settings, and then set the path

Skip this step if you followed this tutorial

wN14fJ.png
wN1Ip9.png
  • Select the project you want to create

At present, there are three kinds of equipment to choose from, which are TV, Wearable, Lite Wearable, the author chooses TV here

wN1q0K.png
  • Set your project name and path
wN1zpd.png
  • Wait patiently for Gradle Sync
wN3i0f.png
  • Initialization completed
wN3AAS.png
  • inDevEco StudioLogin your huawei account with real name
wN3epj.png
wN3l7T.png
  • Start the remote Emulator

If you have not logged in before, this step may prompt you to log in

wN38NF.png
wN3Y9J.png
wN3dnx.png
  • Run your program
wN3s4e.png
wN3ggA.png

Congratulations, you made it! The simple Hello World program is already running successfully. If you run into a few bugs, before you quit, check out the following to see if you have the same problems as the author

wNlwx1.gif

4. Problems encountered

wNlDr6.gif

4.1 DevEco StudioWhen a User logs in to a Huawei account, the authentication fails

  • Scenario: The default browser isGoogle Chrome
  • Solution: Change the computer’s default browser toMicrosoft Edge
  • Conclusion:DevEco StudioGoogle ChromeCompatibility problems with

4.2 No remote emulator is found when the program start button is clicked

image.png
  • What happens: Click the program start button
  • Solution: RestartDevEco StudioCan be
  • Conclusion:DevEco StudioThe smallbug

If the article is a little help to you, I hope you can click on it. Your click on it is my motivation

References:

  • Harmonyos document
  • My first “Hello World” on Huawei Hongmeng OS

This article is formatted using MDNICE