提交 19abdbea 编写于 作者: O openharmony_ci 提交者: Gitee

!347 update quick start

Merge pull request !347 from NEEN/master
......@@ -101,16 +101,16 @@ To ensure the download performance, you are advised to download the source code
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p194141849163919"><a name="p194141849163919"></a><a name="p194141849163919"></a><strong id="b1094411391670"><a name="b1094411391670"></a><a name="b1094411391670"></a>Version Information</strong></p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p8414649193919"><a name="p8414649193919"></a><a name="p8414649193919"></a><strong id="b959378308"><a name="b959378308"></a><a name="b959378308"></a>Site</strong></p>
<td class="cellrowborder" valign="top" width="25%"><p id="p8414649193919"><a name="p8414649193919"></a><a name="p8414649193919"></a><strong id="b977861765"><a name="b977861765"></a><a name="b977861765"></a>Site</strong></p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p13415149133914"><a name="p13415149133914"></a><a name="p13415149133914"></a><strong id="b783416670"><a name="b783416670"></a><a name="b783416670"></a>SHA-256 Verification Code</strong></p>
<td class="cellrowborder" valign="top" width="25%"><p id="p13415149133914"><a name="p13415149133914"></a><a name="p13415149133914"></a><strong id="b1382652136"><a name="b1382652136"></a><a name="b1382652136"></a>SHA-256 Verification Code</strong></p>
</td>
</tr>
<tr id="row4769431134919"><td class="cellrowborder" valign="top" width="25%"><p id="p97691031124913"><a name="p97691031124913"></a><a name="p97691031124913"></a>Full code base</p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p1076916315492"><a name="p1076916315492"></a><a name="p1076916315492"></a>2.0 Canary</p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p67696314491"><a name="p67696314491"></a><a name="p67696314491"></a><a href="https://repo.huaweicloud.com/harmonyos/os/2.0/code-2.0-canary.tar.gz" target="_blank" rel="noopener noreferrer">Download</a></p>
<td class="cellrowborder" valign="top" width="25%"><p id="p67696314491"><a name="p67696314491"></a><a name="p67696314491"></a><a href="https://repo.huaweicloud.com/harmonyos/os/2.0/code-2.0-canary.tar.gz" target="_blank" rel="noopener noreferrer">Download (Site 1)</a> <a href="https://mirror.iscas.ac.cn/OpenHarmony/os/2.0/code-2.0-canary.tar.gz" target="_blank" rel="noopener noreferrer">Download (Site 2)</a></p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p4769123184918"><a name="p4769123184918"></a><a name="p4769123184918"></a><a href="https://repo.huaweicloud.com/harmonyos/os/2.0/code-2.0-canary.tar.gz.sha256" target="_blank" rel="noopener noreferrer">Download</a></p>
</td>
......@@ -164,7 +164,7 @@ To ensure the download performance, you are advised to download the source code
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p1093810218417"><a name="p1093810218417"></a><a name="p1093810218417"></a><strong id="b1124015405556"><a name="b1124015405556"></a><a name="b1124015405556"></a>Version Information</strong></p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p9938132648"><a name="p9938132648"></a><a name="p9938132648"></a><strong id="b57309475"><a name="b57309475"></a><a name="b57309475"></a>Site</strong></p>
<td class="cellrowborder" valign="top" width="25%"><p id="p9938132648"><a name="p9938132648"></a><a name="p9938132648"></a><strong id="b1245654143"><a name="b1245654143"></a><a name="b1245654143"></a>Site</strong></p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p12520113711011"><a name="p12520113711011"></a><a name="p12520113711011"></a><strong id="b19256751175516"><a name="b19256751175516"></a><a name="b19256751175516"></a>SHA-256 Verification Code</strong></p>
</td>
......@@ -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
```
......
......@@ -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. <a name="li5947194711181"></a>在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)
......
......@@ -110,7 +110,7 @@ OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p1076916315492"><a name="p1076916315492"></a><a name="p1076916315492"></a>2.0 Canary</p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p67696314491"><a name="p67696314491"></a><a name="p67696314491"></a><a href="https://repo.huaweicloud.com/harmonyos/os/2.0/code-2.0-canary.tar.gz" target="_blank" rel="noopener noreferrer">站点</a></p>
<td class="cellrowborder" valign="top" width="25%"><p id="p67696314491"><a name="p67696314491"></a><a name="p67696314491"></a><a href="https://repo.huaweicloud.com/harmonyos/os/2.0/code-2.0-canary.tar.gz" target="_blank" rel="noopener noreferrer">站点1</a><a href="https://mirror.iscas.ac.cn/OpenHarmony/os/2.0/code-2.0-canary.tar.gz" target="_blank" rel="noopener noreferrer">站点2</a></p>
</td>
<td class="cellrowborder" valign="top" width="25%"><p id="p4769123184918"><a name="p4769123184918"></a><a name="p4769123184918"></a><a href="https://repo.huaweicloud.com/harmonyos/os/2.0/code-2.0-canary.tar.gz.sha256" target="_blank" rel="noopener noreferrer">SHA256校验码</a></p>
</td>
......@@ -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
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册