本文介绍了Android的回购初始化失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得我按照指令从这个网站非常仔细地

I think i follow instruction from this site very carefully

http://source.android.com/source/downloading.html

但是当我尝试这种

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?

推荐答案

检查回购文件。

有时服务器会返回一个服务器负载过高页面,而不是给你的回购脚本。在这种情况下,你必须下载你的回购文件了。

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,即可获得回购的源从Git的:

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

git clone http://android.git.kernel.org/tools/repo.git/

这篇关于Android的回购初始化失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 10:50