主页 > 定义事例 >AndroidSourceCode不能下载解决方法 >
AndroidSourceCode不能下载解决方法
    参考网址
    如果你是要跑在Beagle Board上
    1.先取得TI所提供的xml档
    $ wget http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/TI_Android_DevKit/02_00_00/exports/TI-Android-FroYo-DevKit-V2.xml
    2.初始化repo
    $ ~/bin/repo init -u git://gitorious.org/rowboat/manifest.git -m TI-Android-FroYo-DevKit-V2.xml
    然后....就出错了!!!
    Getting repo ...
    from git://android.git.kernel.org/tools/repo.git
    android.git.kernel.org[0: 149.20.4.77]: errno=Connection timed out
    android.git.kernel.org[0: 199.6.1.173]: errno=Connection refused
    android.git.kernel.org[0: 130.239.17.13]: errno=Connection refused
    android.git.kernel.org[0: 2001:500:60:10:1972:112:1:0]: errno=Network is unreachable
    android.git.kernel.org[0: 2001:6b0:e:4017:1972:112:1:0]: errno=Network is unreachable
    android.git.kernel.org[0: 2001:4f8:1:10:1972:112:1:0]: errno=Network is unreachable
    android.git.kernel.org[0: 2001:4f8:8:10:1972:112:1:0]: errno=Network is unreachable
    fatal: unable to connect a socket
    -------------------------------------------------------------------------------------------------------
    似乎是无法正常连线到原有的网站做下载的动作
    所以上网寻找了一些解决方法,整理如下
    1.修改原有的repo
    vim ~bin/repo
    把原来的
    REPO_URL='git://android.git.kernel.org/tools/repo.git'
    置换成
    REPO_URL='http://android.git.kernel.org/tools/repo.git'
    2. 改执行
    $ ~/bin/repo init -u git://github.com/android/platform_manifest.git -m TI-Android-FroYo-DevKit-V2.xml
    执行完以上这行,会出现这个错误讯息
    fatal: manifest 'TI-Android-FroYo-DevKit-V2.xml' not available
    fatal: manifest TI-Android-FroYo-DevKit-V2.xml not found
    只差最后一步就可以解决这个问题了
    3.将 TI-Android-FroYo-DevKit-V2.xml 改档名
    $ mvTI-Android-FroYo-DevKit-V2.xmlTI-Android-FroYo-DevKit-V2.2.0.0.xml
    再去执行一次
    $ ~/bin/repo init -u git://github.com/android/platform_manifest.git -m TI-Android-FroYo-DevKit-V2.2.0.0.xml
    真正初始化设定完毕
    4.开始下载Android Source code!!!
    $ ~/bin/repo sync


    上一篇: 下一篇:

随机推荐