下载android源码步骤

来源:互联网 发布:网页播放器源码 编辑:程序博客网 时间:2024/05/22 08:17
安装git和curl 在终端窗口敲下面的命令:
sudo apt-get install git-core curl  
安装repo脚本
curl http://android.git.kernel.org/repo >~/repo  
给repo可执行权限
chmod a+x ~/repo  
新建一个目录mydroid , 然后进入该目录
mkdir mydroid  
 cd mydroid  
repo初始化
~/repo init -u git://android.git.kernel.org/platform/manifest.git  
其间需要输入姓名和邮箱,随意输入,测试颜色选择是,最后你会得到一个类似“repo initialized in /home/nebulayao/mydroid”的提示,说明初始化成功。
repo同步
~/repo sync
好了,因为有大约2个多G的资料需要下载,所以等待的时间可以出去吃个饭。
最后你看到了这样一句 Syncing work tree: 100% ,done 表示下载完毕。
原创粉丝点击