简体   繁体   中英

Android Repo init failed

I think i follow instruction from this site very carefully

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.

Sometimes the server would return a "server loading too high" page instead of giving you the repo script. In this case, you have to download your repo file again.

Alternativly, you can get the source of repo from git:

git clone https://android.googlesource.com/tools/repo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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