如何将Android Studio与华为软件开发云代码仓库无缝对接(一)
随着智能手机的出现和普及,手机在改变时代的同时,也带动着许多行业的发展。随着移动端的火热,越来越多的人开始投身于APP开发的浪潮中。
而Android Studio作为谷歌官方Android开发工具,在移动端开发中占了举足轻重的地位。今天我们就来简单介绍下,如何将Android Studio与华为软件开发云的代码仓库进行关联开发。
首先,我们先要在电脑上分别安装好Android Studio、Git,并在华为软件开发云的代码仓库中已配置好开发相应的代码。
第一步,我们先打开Android Studio,然后在初始页面选择Check out project from Version Control,之后选择Git。

第二步,在弹出的Clone Repository页面的Git Repository URL中,填入华为软件开发中想要拉取的代码仓库的地址。


第三步,填好URL地址后,点击Test按钮。
A:如果显示连接成功,那么直接跳到第七步。

B:如果显示Repository test has failed,则继续第四步。

第四步,进入华为软件开发云代码托管页面,进行密钥配置。点击“一头雾水不知如何开始?请点击这里”。

按照弹出页面中的指示,依次进行配置,如下图所示。

在添加SSH密钥页面,按照指示,依次进行秘钥配置。

生成新秘钥。

复制密钥。

将复制的密钥黏贴到华为软件开发云密钥中,如下图所示。

第五步,配置好密钥后,再次点击Test按钮。
A:如果显示连接成功,那么直接跳到第七步。

B:如果依然显示Repository test has failed,则继续第六步。

第六步,如下图所示,与华为软件开发云代码仓库建立远程连接。

之后,会在.ssh文件中生成一个known_hosts文件。

第七步,在如下页面中点击Yes,即可根据华为软件开发云代码仓库在本地新建一个项目。
- 点赞
- 收藏
- 关注作者
评论(0)