diff --git a/en/device-dev/get-code/source-code-acquisition.md b/en/device-dev/get-code/source-code-acquisition.md index 9631cb7bb3f3cb57e8b147427bb15eeed407077a..53b228ec167a714dd9a67ed1194d1b76db50238b 100644 --- a/en/device-dev/get-code/source-code-acquisition.md +++ b/en/device-dev/get-code/source-code-acquisition.md @@ -101,16 +101,16 @@ To ensure the download performance, you are advised to download the source code

Version Information

-

Site

+

Site

-

SHA-256 Verification Code

+

SHA-256 Verification Code

Full code base

2.0 Canary

-

Download

+

Download (Site 1) Download (Site 2)

Download

@@ -164,7 +164,7 @@ To ensure the download performance, you are advised to download the source code

Version Information

-

Site

+

Site

SHA-256 Verification Code

@@ -291,9 +291,9 @@ You must install **Node.js** and HPM on your local PC. The installation proced 4. Run the following commands to install the **repo** tool: ``` - curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo + curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo # If you do not have the access permission to this directory, download the tool to any other accessible directory and configure the directory to the environment variable. chmod a+x /usr/local/bin/repo - pip install -i https://repo.huaweicloud.com/repository/pypi/simple requests + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests ``` diff --git a/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001117635678.png b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001117635678.png deleted file mode 100644 index bbac93b683790e18d745198b7c95839b1cd274d7..0000000000000000000000000000000000000000 Binary files a/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001117635678.png and /dev/null differ diff --git a/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001118018088.png b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001118018088.png new file mode 100644 index 0000000000000000000000000000000000000000..d4e1c7bd6773fc5b3ab5b473e28593110f3c820f Binary files /dev/null and b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001118018088.png differ diff --git a/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001118018452.png b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001118018452.png new file mode 100644 index 0000000000000000000000000000000000000000..74b66efabbbbbea4752f0296985486369a0cdc74 Binary files /dev/null and b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001118018452.png differ diff --git a/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001164498191.png b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001164498191.png new file mode 100644 index 0000000000000000000000000000000000000000..30efd063397893ff925743b681f943696f10512b Binary files /dev/null and b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001164498191.png differ diff --git a/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001164506365.png b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001164506365.png new file mode 100644 index 0000000000000000000000000000000000000000..c54e6d32069ab0383627c627efba3d62dd9dd317 Binary files /dev/null and b/zh-cn/application-dev/quick-start/figures/zh-cn_image_0000001164506365.png differ diff --git "a/zh-cn/application-dev/quick-start/\345\257\274\345\205\245OpenHarmony\345\267\245\347\250\213.md" "b/zh-cn/application-dev/quick-start/\345\257\274\345\205\245OpenHarmony\345\267\245\347\250\213.md" index 3d0571cdc4f5b4c1bd7474fe8372ca2f5f235077..639884507b246baf982ff12f182d9d6fec6d5086 100644 --- "a/zh-cn/application-dev/quick-start/\345\257\274\345\205\245OpenHarmony\345\267\245\347\250\213.md" +++ "b/zh-cn/application-dev/quick-start/\345\257\274\345\205\245OpenHarmony\345\267\245\347\250\213.md" @@ -2,27 +2,39 @@ OpenHarmony SDK配置完成后,便可以启动应用开发。针对OpenHarmony应用开发,**只能通过导入Sample工程的方式来创建一个新工程**。 -1. 在DevEco Studio的欢迎页,点击**Import HarmonyOS Sample**按钮,导入Sample工程。 +目前,支持OpenHarmony应用开发的Sample工程,只能选择common分类中的**HelloWorld**或者**JsHelloWorld**。 + +1. 在DevEco Studio的欢迎页,进入**Configure (或**![](figures/zh-cn_image_0000001118018452.png)**图标) \> Settings \> Version Control \> Git**界面,点击Test按钮检测是否安装Git工具。 + - 已安装,请根据[2](#li5947194711181)开始导入Sample。 + + ![](figures/zh-cn_image_0000001118018088.png) + + - 未安装,请点击**Download and Install**,DevEco Studio会自动下载并安装。安装完成后,请根据[2](#li5947194711181)开始导入Sample。 + + ![](figures/zh-cn_image_0000001164498191.png) + + +2. 在DevEco Studio的欢迎页,点击**Import HarmonyOS Sample**按钮,导入Sample工程。 ![](figures/zh-cn_image_0000001163835551.png) -2. 选择ability下的**HelloWorld**工程,然后点击**Next**。 +3. 选择common下的**HelloWorld**或者**JsHelloWorld**工程,然后点击**Next**。 - ![](figures/zh-cn_image_0000001117635678.png) + ![](figures/zh-cn_image_0000001164506365.png) -3. 设置**App Name**和**Project Location**,然后点击**Finish**,等待Sample工程导入完成。 +4. 设置**App Name**和**Project Location**,然后点击**Finish**,等待Sample工程导入完成。 ![](figures/zh-cn_image_0000001163915521.png) -4. Sample导入后,等待工程同步完成,此时工程会同步失败。请打开工程下的build.gradle,修改hap插件的版本号为“2.4.4.3-RC”。 +5. Sample导入后,请打开工程下的build.gradle,修改hap插件的版本号为“2.4.4.3-RC”。 ![](figures/zh-cn_image_0000001117475776.png) -5. 修改完成后,点击右上角Gradle中的![](figures/zh-cn_image_0000001163835553.png)按钮,重新同步工程。 +6. 修改完成后,点击右上角Gradle中的![](figures/zh-cn_image_0000001163835553.png)按钮,重新同步工程。 ![](figures/zh-cn_image_0000001117635680.png) -6. 等待工程同步完成,同步成功后,便可以进行OpenHarmony应用开发了。 +7. 等待工程同步完成,同步成功后,便可以进行OpenHarmony应用开发了。 ![](figures/zh-cn_image_0000001163915523.png) diff --git "a/zh-cn/device-dev/get-code/\346\272\220\347\240\201\350\216\267\345\217\226.md" "b/zh-cn/device-dev/get-code/\346\272\220\347\240\201\350\216\267\345\217\226.md" index 7ee7bccf90deb10acf1caf218d32b6c84f56eec4..e23b8a0bdd5e3b3138441b80ce4fc4c57f4e3fce 100755 --- "a/zh-cn/device-dev/get-code/\346\272\220\347\240\201\350\216\267\345\217\226.md" +++ "b/zh-cn/device-dev/get-code/\346\272\220\347\240\201\350\216\267\345\217\226.md" @@ -110,7 +110,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及

2.0 Canary

-

站点

+

站点1站点2

SHA256校验码

@@ -280,7 +280,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 1. 注册码云gitee账号。 2. 注册码云SSH公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4181)。 -3. 安装[git客户端](http://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading)并配置用户信息。 +3. 安装[git客户端](http://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading))并配置用户信息。 ``` git config --global user.name "yourname" @@ -291,7 +291,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及 4. 安装码云repo工具,可以执行如下命令。 ``` - curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo + curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中 chmod a+x /usr/local/bin/repo pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests ``` diff --git a/zh-cn/device-dev/quick-start/figures/zh-cn_image_0000001160528243.png b/zh-cn/device-dev/quick-start/figures/zh-cn_image_0000001160528243.png new file mode 100644 index 0000000000000000000000000000000000000000..571af4fc8e53f59f246496ad670cc6b84f4473f3 Binary files /dev/null and b/zh-cn/device-dev/quick-start/figures/zh-cn_image_0000001160528243.png differ