大陆下载android 源码

来源:互联网 发布:淘宝中老年女装棉袄 编辑:程序博客网 时间:2024/04/28 14:44

  由于国外的网站被墙,这里所有提供的只是国内的下载方式

   1、apt-get install git-core curl #下载工具

    2、 国内的repo

    curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo >./repo

     3、chmod a+x repo #设置该脚本为可以执行

  4、国内的源代码下载地址
  $ repo init -u git://git.omapzoom.org/platform/manifest.git
    如果要获取每个tag,譬如2.3.5,则可以执行:
    $ repo init -u git://git.omapzoom.org/platform/manifest.git -b android-4.4.4_r1
  如果你不知道具体的tag叫什么名字,那么可以在浏览器访问http://git.omapzoom.org,并点击上面的/platform/manifest.git链接,那么可以看到所有的tag名称.
    执行repo init过程中,可能需要填写一些个人信息,直接填写即可。
    配置好repo后,执行./repo sync即可下载你所需要的源代码了。
   5、 repo sync出现“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”的解决方案
      打开.repo目录下的manifest.xml文件(命令vim manifest.xml)并找到fetch属性,在我的文件中显示fetch="..",将fetch修改为fetch="git://git.omapzoom.org/",保存并退出;
    6、继续./repo sync就可以下载了。
     参考地址:http://blog.sina.com.cn/s/blog_70b9730f01016peg.html
                       http://blog.chinaunix.net/uid-21843387-id-2943616.html
                       http://blog.csdn.net/liangxiaozhang/article/details/19543261
0 0
原创粉丝点击