preface
This post has been posted on my Github blog. Welcome to my humble abode:
My GIthub blog
Learning map
First, why early tasteharmonyos
?
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.
Second, preparation
- 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 Studio
The installation package
- Double-click the downloaded”
deveco-studio-xxxx.exe
“, enter theDevEco Studio
Installation wizard: Select this option on the following installation options screenDevEco Studio launcher
Later, clickNext
Until the installation is complete
- If you see this screen, the initial installation is complete
3.2 startDevEco Studio
- Choose whether to import the configuration or not.
- Agree to a deal
- The installation
Sdk
, click on thenext
Can be
- agree
SDK
agreement
For the SDK, if you’ve already installed the Java development environment, you don’t have to click the download button
- Download, may be a little long, please wait patiently HHH
- Download complete,
finish
Can be
3.3 the use ofDevEco Studio
- Open the
DevEco Studio
- If you have a
jdk
If not, clickConfigure/Settings
, and then set the path
Skip this step if you followed this tutorial
- 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
- Set your project name and path
- Wait patiently for Gradle Sync
- Initialization completed
- in
DevEco Studio
Login your huawei account with real name
- Start the remote Emulator
If you have not logged in before, this step may prompt you to log in
- Run your program
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
4. Problems encountered
4.1 DevEco Studio
When a User logs in to a Huawei account, the authentication fails
- Scenario: The default browser is
Google Chrome
- Solution: Change the computer’s default browser to
Microsoft Edge
- Conclusion:
DevEco Studio
对Google Chrome
Compatibility problems with
4.2 No remote emulator is found when the program start button is clicked
- What happens: Click the program start button
- Solution: Restart
DevEco Studio
Can be - Conclusion:
DevEco Studio
The 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