Jon*_*Jon 6 python windows git android android-source
如您所知,https://android.googlesource.com/中列出了数百个项目.我想在windows机器上全部下载它们.根据谷歌的文件,
To install, initialize, and configure Repo:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
To clone the entire platform, install repo, and run:
mkdir mydroid
cd mydroid
repo init -u https://android.googlesource.com/platform/manifest
repo sync
Run Code Online (Sandbox Code Playgroud)
但是,在我的机器中,我无法在Git Bash中"repo init",因为它说它没有python.我安装了python,但git bash无法识别它.请注意,我也将python目录设置为系统路径.如果有人能给出小费,我将不胜感激.谢谢
更新:我认为新版本的Git Bash for Windows存在问题.系统路径根本不适用于Git Bash - 我可以轻松测试系统路径是否与命令提示符一起使用.无论如何,我尝试了这个,当然它实际上运行错误.
/c/python27/python.exe ../bin/repo init -u https://android.googlesource.com/platform/manifest
Run Code Online (Sandbox Code Playgroud)
错误消息是
$ /c/python27/python.exe ../bin/repo init -u https://android.googlesource.com/platform/manifest
Traceback (most recent call last):
File "../bin/repo", line 91, in <module>
import readline
ImportError: No module named readline
Run Code Online (Sandbox Code Playgroud)
好.我通过在Windows中安装pyreadline来传递此错误:
easy_install pyreadline
Run Code Online (Sandbox Code Playgroud)
如果出现错误,则必须安装setuptools
http://pypi.python.org/pypi/setuptools#files
Run Code Online (Sandbox Code Playgroud)
最后再次运行命令得到这个:
$ repo init -u https://android.googlesource.com/platform/manifest
fatal: unable to start d:\mywork\dev\GoogleAndroid\working_dir\.repo\repo/main.py
fatal: [Errno 8] Exec format error
Run Code Online (Sandbox Code Playgroud)
随着点击,下载最新的代码.tar.gz文件,从这里
https://android.googlesource.com/platform/frameworks/base/+archive/master.tar.gz,Android的可能下找到core文件夹
编辑
备选方案:http:
//grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/
只需选择版本,然后选择其中的下载选项.
| 归档时间: |
|
| 查看次数: |
8050 次 |
| 最近记录: |