下载android源码出错解决办法
2013-04-10 16:18
218 查看
获取Android源代码使用repo sync命令,但经常会出错,导致获取不了最新的代码。 出现以下的类似错误:From https://android.googlesource.com/platform/manifest * [new branch] android-cts-2.3_r12 -> origin/android-cts-2.3_r12 * [new tag] android-cts-2.3_r12 -> android-cts-2.3_r12Exception in thread Thread-1:Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "/usr/lib/python2.6/threading.py", line 484, in run self.__target(*self.__args, **self.__kwargs) File "/cygdrive/f/OpenSource/Android/.repo/repo/subcmds/sync.py", line 186, in _FetchHelper current_branch_only=opt.current_branch_only) File "/cygdrive/f/OpenSource/Android/.repo/repo/project.py", line 929, in Sync_NetworkHalf current_branch_only=current_branch_only): File "/cygdrive/f/OpenSource/Android/.repo/repo/project.py", line 1428, in _RemoteFetch if GitCommand(self, cmd, bare=True, ssh_proxy=ssh_proxy).Wait() == 0: File "/cygdrive/f/OpenSource/Android/.repo/repo/git_command.py", line 215, in __init__ raise GitError('%s: %s' % (command[1], e))GitError: fetch: [Errno 13] Permission denied 上网查了一番,发现到相应的工程运行一下git checkout -f就可以解决了。但是每次这样搞法也是费时费力啊。 查了一下repo的命令参数,发现repo forall可以对所有项目执行一个命令。于是就有了以下的解决办法: repo forall -c git checkout -frepo sync -f
相关文章推荐
- 获取android源码时无法下载repo的解决办法
- Andriod下载源码导入后AndroidManifest.xml小红叉的解决办法
- 新建android项目兼容v4包出错和解决办法,带有可下载的空项目
- android开发环境搭建:eclipse 下载--jdk环境变量配置--eclipse ide主题--genymotion下载--sdk源码关联--adb出错解决
- 因svn编译Android源码出错的解决办法
- Android Source 源码已下载但 Android Studio 找不到的解决办法
- 下载android源码时出现http请求错误到解决办法
- 下载android源码repo sync失败的解决办法
- Android 源码下载遇到 403错误 的解决办法
- 下载Android源码 curl: (6) Couldn't resolve host 'android.git.kernel.org' 国内解决办法
- 下载android源码repo sync失败的解决办法
- 【Android源码编译】在公司内网环境下使用repo获取android源码失败解决办法
- 解决用虚拟机或者公司网络下载android源码,遇到DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>的问题
- 解决下载Android源码时遇到的 download error
- 关联android-support-v4源码关联不上的解决办法
- 下载Tomcat源码后,编译时找不到JDT的解决办法
- CentOS x64 里php 源码编译出错参见情况及解决办法
- android 导入工程时出错的解决办法
- Android 无法关联Api-23源码的解决办法
- Ubuntu中编译Android 源码出现Switch.pm出错信息的解决方法