Android 源码下载编译 FAQ
2015-09-07 09:16
519 查看
下载被限制
解决方案Using Authentication
By default, access to the Android source code is anonymous. To protect the servers against excessive usage, each IP address is associated with a quota.
When sharing an IP address with other users (e.g. when accessing the source repositories from beyond a NAT firewall), the quotas can trigger even for regular usage patterns (e.g. if many users sync new clients from the same IP address within a short period).
In that case, it is possible to use authenticated access, which then uses a separate quota for each user, regardless of the IP address.
The first step is to create a password with the password generator and follow the instructions on the password generator page.
The second step is to force authenticated access, by using the following manifest URI: https://android.googlesource.com/a/platform/manifest. Notice how the /a/ directory prefix triggers mandatory authentication. You can convert an existing client to use mandatory authentication with the following command:
$ repo init -u https://android.googlesource.com/a/platform/manifest[/code]
简单来说就是
1. 打开网址 https://android.googlesource.com/new-password,按照网页提示生成命令行,然后在下载源码的机器上执行 - 自然,前提是要先用账户登录
2. 重新输入原来的命令,不过在 platform 前面加上 a, 例如$ repo init -u https://android.googlesource.com/a/platform/manifest
3. 输入上名命令后会有提示,根据提示或者输入正确的用户邮箱或者修改
参考
https://source.android.com/source/downloading.html#using-authentication切换分之后下载失败
错误症状error: Exited sync due to fetch errors
解决方案
$ repo sync$ repo sync -f
参考
http://stackoverflow.com/questions/16085722/when-running-repo-sync-error-exited-sync-due-to-fetch-errors#
相关文章推荐
- Qt的前景如何?Qt for Android 好吗?
- Android提供的LruCache类简介
- Android 可拖动进度条:SeekBar之自定义进度条
- Android 开发环境下载地址 -- 百度网盘 adt-bundle android-studio sdk adt 下载
- Android中Fragment碎片解析
- android listView 全部展开,并且点击Item有效,可以用scrollView包裹,实现整体滑动
- 浅谈Android布局
- 浅谈Android布局
- Qt5.2 for Android 配置及部署到手机运行
- android自定义View的实现
- android studio keystore相关
- Android 获取Uri路径的正确方法(2012-11-9更新 支持Android4.1)
- Android Api Demos登顶之路(五十八)Service Start Argument Control
- Android学习记录之ListView特殊属性介绍
- 0.0.2 Android开发系列——Android开发基础环境
- android用setcontentview来加载一个布局文件的本质原因
- 9.7android注解支持,mysql优化,图片搜索
- Android 短代码实现 最简易的画板
- Android开发过程中遇到的问题
- 【Android Studio】No JVM installation found