简体   繁体   English

Repo Init Fatal:错误未知的url类型

[英]Repo Init Fatal: error unknown url type

I am using repo to sync my local android source code. 我正在使用repo来同步我的本地android源代码。 I have followed the instructions on the android source website: http://source.android.com/source/downloading.html 我已按照Android源代码网站上的说明操作: http//source.android.com/source/downloading.html

When I try to do repo init: 当我尝试做repo init时:

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

I get the following error: 我收到以下错误:

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

I have followed multiple threads on google and have modified my repo scripts and changed the https to http in the REPO_URL but I am continuing to get the same error. 我在google上跟踪了多个线程,并修改了我的repo脚本,并在REPO_URL中将https更改为http,但我继续得到同样的错误。

What else do I need to do? 我还需要做什么?

Please help. 请帮忙。

Markus 马库斯

I have answered my own question. 我已经回答了我自己的问题。

Since I last did a repo sync I had cleared my HTTP_PROXY and HTTPS_PROXY variables. 自从我上次进行了repo sync以来,我已经清除了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>

Running this for my company settings fixed the problem. 为我的公司设置运行此操作修复了问题。

Markus 马库斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM