我想我非常仔细地遵循这个网站的指示
http://source.android.com/source/downloading.html
但是当我尝试这个
repo init -u https://android.googlesource.com/platform/manifest
我得到了以下错误。
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`
我尝试了好几次,但从开始就没有运气。 发生了什么?
检查你的repo
文件。
有时服务器会返回一个“服务器负载过高”的页面,而不是给你repo
脚本。 在这种情况下,您必须再次下载您的repo
文件。
另外,你可以从git获得repo
的来源:
git clone https://android.googlesource.com/tools/repo