打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
android fatal: HTTP request failed

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"?

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

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.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Android Repo的manifest XML文件格式~转
repo 相关
android repo qiehuanfenzhi
建本地 repo server --- 超复杂型 -- 备份
Android版本下载以及切换
Repo, Tips & Tricks
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服