minhaz minhaz - 8 months ago 59
Android Question

Android Repo init failed

I think i follow instruction from this site very carefully


but when i try this

repo init -u git://android.git.kernel.org/platform/manifest.git

i got the following error.

repo init -u git://android.git.kernel.org/platform/manifest.git -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 http://android.git.kernel.org/tools/repo.git/