1 -> Download and install DevEco Studio
Windows environment as an example:
1.1 -> Operating Environment Requirements
To ensure the normal operation of DevEco Studio, we recommend that the computer configuration meet the following requirements:
Operating System:Windows 10 64-bit
RAM: 8GB and above
Hard disk: 100GB and above
Resolution: 1280*800 pixels and above
1.2 -> Download and install DevEco Studio
DevEco Studio relies on the JDK for compilation and build, and DevEco Studio comes preset with Open JDK, version 1.8, which will be automatically installed during the installation process.
Go to the HUAWEI DevEco Studio product page and click the Download Now button to download DevEco Studio.
After the download is complete, decompress the devecostudio-windows-5.0.5.306 file to enter the DevEco Studio installation wizard.
Select the installation path in the following interface, the default installation is in the C:\Program Files path, you can also click "Browse" to specify another installation path, and then click "Next" until the installation is completed.
Once the installation is complete, click "Finish" to complete the installation.
2 -> Configure environment variables
To create a new system variable:
Variable name: HDC_SERVER_PORT
Variable value: 7035
The configuration is complete
3 -> Configure the development environment
Open the installed DevEco Studio, select Do not import settings, and click OK.
Click Agree, agree to the terms, and go to the configuration page.
Download the SDK
Once you enter DevEco Studio, click Customize, then click All setting, and go to Settings to find the OpenHarmony SDK.
Once you've found the OpenHarmony SDK, click Edit.
Click Next
Then click Next
Select Accept and click Finish.
Click Finish
The setup is complete.
4 -> Development project preparation
- Diagnose the environment
Click Diagnose
You can create a project.
- Create a project
Click Projects, then click Create Project.
Select Application, click Empty Ability, and click Next.
Click Finish
Tap your profile picture and click Sign in to log in to your HUAWEI ID
After logging in to your HUAWEI account, return to DevEco Studio as shown in the following figure.
Login successful
- Run the Reviewer
Click Preview on the far left.
The run was successful
- Run the virtual machine
Click No Devices, and then click Device Manager
Click Agree
Select Huawei_Phone and click Download.
Click Accept, and then click Next.
Click Finish
Click the Run icon under Actions.
After the virtual machine runs successfully, run the compiled code.
The startup was successful
5 -> Practical tips
5.1 -> Chinese plugins
Click File, and then click Settings to go to Settings.
Click on Plugins and enter the search content: Chinese.
Click the box to the right of Chinese (Simplified).
Click Enable (it becomes Disable when clicked).
Click Apply.
6 -> Simplify the project directory bar
When writing programs, it is mainly in Ohos, so switching Project to Ohos can make the project directory bar more concise.
Top comments (0)