构建AndroidX库时遇'sso'远程助手未找到问题求助
克隆AndroidX代码时遇到"unable to find remote helper for 'sso'"错误
执行以下repo初始化命令时:
$ repo init -u sso://android/platform/manifest \ -b androidx-main --partial-clone --clone-filter=blob:limit=10M
出现错误:
manifests: fatal: unable to find remote helper for 'sso' manifests: sleeping 4.0 seconds before retrying manifests: fatal: unable to find remote helper for 'sso' fatal: cannot obtain manifest sso://android/platform/manifest
已完成的准备步骤:
- 完成访问控制设置,获取了
.gitcookies文件 - Git配置如下:
$ git config --list user.name=<hide this> user.email=<hide this> color.ui=auto http.proxy=127.0.0.1:7890 http.cookiefile=/home/<hide this>/.gitcookies https.proxy=127.0.0.1:7890 core.autocrlf=input credential.helper=store
- 已提交Google Contributor License Agreement:
New Contributor Agreement Select an agreement type: Google CLA Agreement already submitted. Google Contributor License Agreement
问题原因与解决方法
sso://是Google内部专属的版本控制协议,外部开发者无法使用对应的Git远程助手。只需将repo初始化命令中的URL替换为公开的HTTPS地址即可解决:
修改后的命令:
repo init -u https://android.googlesource.com/platform/manifest \ -b androidx-main --partial-clone --clone-filter=blob:limit=10M
重新执行上述命令,即可正常获取manifest文件并继续后续代码克隆流程。
内容的提问来源于stack exchange,提问作者Orrest
相关产品推荐
相关产品推荐

