当前位置:网站首页>Download, installation and development environment construction of "harmonyos" deveco

Download, installation and development environment construction of "harmonyos" deveco

2022-07-07 18:13:00 Starry Luli

Author's brief introduction : One likes to write , Sophomore rookie of planning major

Personal home page :starry Lu Li

First date :2022 year 7 month 7 Thursday, Sunday

Last article :『HarmonyOS』 All things connected , Distributed operating system

Subscription column :『HarmonyOS』
Daily recommendation : Basic algorithm is a very important part in both graduate interview and job interview , Here we recommend an algorithm interview artifact : Cattle from - Interview artifact ; Algorithm problems can only be kept thinking and feeling by brushing more and more frequently , Let's move quickly ( reminder : The common interview question bank is also very nice Oh )
 Insert picture description here

If the article helps you, remember to praise + Collect and support

 Insert picture description here

1. The development of preparation

Apply to become a developer

​ It's going on HarmonyOS application / Before service development , Developers need to register a Huawei developer account . You can visit :https://www.harmonyos.com, Click on the top right corner to register , On the registration page , Select a mobile number or email address to register :

image-20220704115107448

Developer real name authentication

​ After registration , Real name authentication is required , The real name authentication methods are divided into :“ Personal developer real name certification ” and “ Enterprise developer real name certification ”. The specific steps are :

  1. Select developer category : here Select individual developers ;
  2. Whether there are sensitive applications on the shelves : Select sensitive applications to be put on the application market ;
  3. Select the authentication method : Choose face recognition authentication or personal bank card authentication according to the actual situation ;
  4. Manage Pages : Enter the developer service management page for related configuration

image-20220704115253850

2. Download and install DevEco Studio

HUAWEI DevEco Studio yes be based on IntelliJ IDEA Community Open source version make , One stop integrated development environment for terminal full scene multi devices (IDE), Support at the same time OpenHarmony and HarmonyOS application / service (Application/Service) Development . Provide developers with one-stop distributed applications / Service development platform , Support distributed multi terminal development 、 Distributed multiterminal debugging 、 Multi terminal simulation , Provide all-round quality and safety assurance .

Windows Operating environment requirements : To guarantee DevEco Studio The normal operation , It is recommended that the computer configuration meet the following requirements :

  • operating system :Windows10 64 position
  • Memory :8GB And above
  • Hard disk :100GB And above
  • The resolution of the :1280*800 Pixel and above

2.1HarmonyOS Official website

HUAWEI DevEco Studio and SDK Download and upgrade | HarmonyOS developer

DevEco Studio The compilation build of depends on JDK,DevEco Studio Preset Open JDK, Version is 1.8, It will be installed automatically during the installation process JDK.

  1. Get into HUAWEI DevEco Studio(https://developer.harmonyos.com/cn/develop/deveco-studio/) Product page , Click the button after the download list , download DevEco Studio.

image-20220616211340228

Don't download this version , This version does not java Pattern ,OpenHarmony and HarmonyOS There is a difference .

image-20220616203330655

2.2 install DevEco

When the download is complete , Double-click the downloaded “deveco-studio-xxxx.exe”, Get into DevEco Studio Installation wizard , Check... In the following installation options interface DevEco Studio after , Click on Next, Until installation is complete .

image-20220616211911368

Click on next

image-20220616212031318

Select installation location

image-20220616204254713

create shortcut , Add environment variables

image-20220616204410363

3. Configure environment variables

3.1SDK install

​ For the first time DevEco Studio, Need to download HarmonyOS SDK And corresponding tool chain . If it is not the first installation DevEco Studio,SDK For download and update methods, please refer to update HarmonyOS SDK.

​ download HarmonyOS SDK

  1. Run the installed DevEco Studio, For the first time to use , Please select Do not import settings, Click on OK.

    image-20220616213452079

  2. Get into DevEco Studio Operation wizard page , Set up npm registry,DevEco Studio The corresponding warehouse has been preset , Just click Start using DevEco Studio Go to the next step .

    image-20220616213552618

  3. according to DevEco Studio The operation wizard guides you to download SDK, Default download OpenHarmony SDK. The default storage path is users Catalog , You can also choose any path that does not contain Chinese characters , And then click Next.

    image-20220616214342859

  4. In the pop-up SDK Download information page , Click on Next, And in the pop-up License Agreement window , Click on Accept Start the download SDK.

    image-20220616214409635

    image-20220616214432740

  5. wait for OpenHarmony SDK And tools download completed , Click on Finish, The interface will enter DevEco Studio The welcome page

  6. Click... On the welcome page Configure( or  Icon ) > Settings > SDK Manager > HarmonyOS Legacy SDK, And then click Edit Set up HarmonyOS SDK Storage path .

  7. Set up HarmonyOS Legacy SDK Location Storage path , And then click Next. Please note that , The path cannot be associated with OpenHarmony SDK The storage path is the same , Otherwise, it will lead to OpenHarmony SDK The file was deleted .

    image-20220704160732030

  8. In the pop-up SDK Download information page , Click on Next, And in the pop-up License Agreement window , Click on Accept Start the download SDK.

  9. When the download is complete , Click on Finish. Since then ,HarmonyOS SDK The installation is complete .
    SDK By default, only the latest version will be downloaded Java SDK、JS SDK、Previewer and Toolchains, Click... On the welcome page above Configure( or  Icon ) > Settings > SDK Manager > HarmonyOS Legacy SDK, Get into HarmonyOS Legacy SDK page , Other components can be downloaded , Just check the corresponding component package , And then click Apply that will do .

3.2HDC To configure ( Optional )

HDC It's for developers to provide HarmonyOS application / Service Debugging tools , For ease of use HDC Tools , Please for HDC Set the environment variable with the tool and its port number .

​ Windows Environment variable setting method :

(1) On this computer > attribute > Advanced system setup > senior > In the environment variables , add to HDC The port variable name is :HDC_SERVER_PORT, The variable value is set to 7035.

image-20220704141828374

HDC_SERVER_PORT

image-20220704142058030

Similarly, create this port number in the system environment variable

(2) stay path variable , add to HDC Tool path ,HDC Tool path is :HarmonyOS SDK The installation directory /toolchains( The default path :C:\Users\admin\AppData\Local\Huawei\Sdk\toolchains), When the environment variable configuration is complete , Shut down and restart DevEco Studio.

image-20220704142733020

image-20220704142936895

Verify that the environment is configured successfully


thus HarmonyOS The development environment is set up , In the next chapter, we will create the first Hongmeng project and learn how to use local virtual machines and remote virtual machines , Pay attention

Daily recommendation : Basic algorithm is a very important part in both graduate interview and job interview , Here we recommend an algorithm interview artifact : Cattle from - Interview artifact ; Algorithm problems can only be kept thinking and feeling by brushing more and more frequently , Let's move quickly ( reminder : The common interview question bank is also very nice Oh )
 Insert picture description here

原网站

版权声明
本文为[Starry Luli]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071602549044.html