您的位置:首页 > 移动开发 > Android开发

android 2.2(froyo)源码下载

2011-06-20 22:41 323 查看
源码主页:http://android

.git.kernel.org/

正常下载步骤:

        $ mkdir mydroid-froyo

        $ cd mydroid-froyo

        $ repo init -u git://android.git.kernel.org/platform/manifest.git

        $ repo sync

尝试了好几次,都没成功下载过…

如果能通过浏览器浏览到android源码的主页,但运行repo init或repo sync的时候,却没法下载源码,形如:

只需要把git开头的地址改为http即可:

[1]

repo init -u http://
android.git.kernel.org/platform/manifest.git -b froyo

[2]修改manifest.git里的地址,也是把git://改为http://

vim .repo/manifest.git

如:

   <?xml version="1.0" encoding="UTF-8"?>

  <manifest>

     <remote  name="korg"

              fetch="http://

android.git.kernel.org/"

              review="review.source.android.com" />

     <default revision="froyo"

              remote="korg" />

 

可以直接下载打包好的源码(1.5/16./2.0/2.1/2.2)

地址:http://rgruet.free.fr/public/

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息