按照Android官网上的下载方法下载Android源代码,运行到步骤
repo init -u https://android.googlesource.com/platform/manifest
时报错,提示如下:
fatal: Cannot get https://android.googlesource.com/tools/repo/clone.bundle
fatal: error (-5, 'No address associated with hostname')
这是什么原因,应该怎么改正,各位高手指点一下

解决方案 »

  1.   

    https://android.googlesource.com/tools/repo/clone.bundle
    把https换成http试试。
      

  2.   

    是不是网络配置的问题,在repo init前一步,调用
    curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    的时候也会报错,curl: (2) Failed initialization
    我的repo是从网上直接下载的,并非通过官网上curl的方法。
      

  3.   

    我下载repo的方式是将
    https://dl-ssl.google.com/dl/googlesource/git-repo/repo
    直接另存为repo文件,这种方式是否也可以
    如果可以,里边的REPO_URL;REPO_REV这两个参数应该怎么改写,repo文件中是否还有其它地方需要修改
    在下一步进行repo init操作时,命令应该怎么写,URL等参数应当如何配置,我直接将官网上的
    repo init -u https://android.googlesource.com/platform/manifest
    命令复制,但是下载失败
    麻烦各位高手给指点一下!