Android4.0源码获取

来源:互联网 发布:mac apache安装目录 编辑:程序博客网 时间:2024/04/30 02:05

        Android4.0,江湖混号“Ice Cream”,中文名称“姜饼”,已经与本月15号放出源码,可谓千呼万唤始出来。

        由于之前已经多次同步过Android2.3的源码,因此,就直接利用已有的环境执行了下面这些操作:


$mkdir icecream$cd icecream$repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

执行最后这条init命令时,出错啦:

Getting repo ...   from git://android.git.kernel.org/tools/repo.gitandroid.git.kernel.org[0: 149.20.4.77]: errno=Connection refusedfatal: unable to connect a socket (Network is unreachable)
但是利用repo可以同步公司内部的源码,于是想:导致错误的原因可能是repo自身的问题。于是更新了下repo,执行以下命令:

$curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo$chmod a+x ~/bin/repo
然后,再次执行:

$repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
OK,一切正常,最后

$repo sync

        最后要说明的是:如果是系统第一次进行代码同步,基本是按照链接点击打开链接里的步骤进行的,应该不会出现上述问题;如果像兄弟我一样,有历史记录的系统,可能就会遇到上述问题。


原创粉丝点击