Googlesites tells me that i should use repo && git to download theandroid source code. So i began to download it from last night. Andafter one night, i found it has stopped at 99% for almost 3 hours whendownloading a part of git(actually it is bionic.gitmentioned below) in the morning, so i killed the progress and resumedit. But it won't continue again. i executed the command "repo sync"just now and after a short time it tells me that.
error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/manifest/info/refs
fatal: HTTP request failed
fatal: Not a git repository: '/home/lubuntu/.repo/projects/bionic.git'
Fetching projects: 38% (84/221) fatal: Not a git repository: '/home/lubuntu/.repo/projects/bionic.git'
Fetching projects: 93% (206/221) error: Cannot fetch platform/bionic
Fetching projects: 95% (210/221)
error: Exited sync due to fetch errors
lubuntu@lubuntu-PC:~$ repo sync
fatal: Not a git repository: '/home/lubuntu/.repo/projects/bionic.git'
Fetching projects: 61% (135/221) fatal: Not a git repository: '/home/lubuntu/.repo/projects/bionic.git'
Fetching projects: 99% (219/221) error: Cannot fetch platform/bionic
error: Exited sync due to fetch errors
i have downloaded for about 5.1G, but can't continue again. Cananyone tell me how to fix the error, or tell me where can i browse theandroid source code online. Any help appreciated.
Still searching for a solution (as I was) to these "platform/bionic" (or other project) errors from "repo sync"?
Some folks suggested trying "repo sync -f" (or "-j1" or ...), but inthe example above the "bionic.git" project info appears to be corrupt(or incomplete) and won't sync no matter how many times you re-try. The solution I found was to delete (or rename) the".repo/projects/bionic.git" directory in which case the next "reposync" will re-create the "bionic.git" repository info (specifically the"config" file inside that directory which was initially missing the[CORE] and [USER] sections), and should then be able to sync itsuccessfully. |