[英]Android Repo init failed
I think i follow instruction from this site very carefully我想我非常仔细地遵循这个网站的指示
http://source.android.com/source/downloading.html http://source.android.com/source/downloading.html
but when i try this但是当我尝试这个时
repo init -u https://android.googlesource.com/platform/manifest
i got the following error.我收到以下错误。
repo init -u https://android.googlesource.com/platform/manifest -b froyo
/root/bin/repo: line 1: syntax error near unexpected token `newline'
/root/bin/repo: line 1: `<?xml version="1.0" encoding="utf-8"?>'enter code here`
I tried several times but no luck from the very begining.我尝试了几次,但从一开始就没有运气。 What happened?发生了什么?
Check your repo
file.检查你的repo
文件。
Sometimes the server would return a "server loading too high" page instead of giving you the repo
script.有时服务器会返回一个“服务器加载太高”页面,而不是给你repo
脚本。 In this case, you have to download your repo
file again.在这种情况下,您必须再次下载您的repo
文件。
Alternativly, you can get the source of repo
from git:或者,您可以从 git 获取repo
的来源:
git clone https://android.googlesource.com/tools/repo
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.