【问题标题】:Repo Init Fatal: error unknown url typeRepo Init Fatal:错误未知的 url 类型
【发布时间】:2012-06-29 08:08:05
【问题描述】:

我正在使用 repo 来同步我的本地 android 源代码。我已经按照android源码网站上的说明进行操作了:http://source.android.com/source/downloading.html

当我尝试做 repo init 时:

repo init -u http://android.googlesource.com/platform/manifest

我收到以下错误:

fatal: Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error unknown url type: https

我在 google 上关注了多个线程并修改了我的 repo 脚本并将 REPO_URL 中的 https 更改为 http,但我仍然遇到同样的错误。

我还需要做什么?

请帮忙。

马库斯

【问题讨论】:

    标签: android repository


    【解决方案1】:

    我已经回答了我自己的问题。

    自从我上次进行 repo 同步以来,我已经清除了我的 HTTP_PROXY 和 HTTPS_PROXY 变​​量。

    export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
    export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
    

    为我的公司设置运行这个解决了问题。

    马库斯

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-22
      • 2019-07-22
      • 2020-10-15
      • 2012-12-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多