下载的Andr​​oid code为联系人应用程序 [英] Download Android code for Contacts application

查看:116
本文介绍了下载的Andr​​oid code为联系人应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想下载Android源$ C ​​$ c代表联系,从Git仓库拨号和CallLog应用。我试图在我的Mac(运行雪豹)如下:结果
1.创建一个bin目录和将所有下载的文件一款Android DIR结果
2.增加两个目录到PATH环境变量结果的
3.运行以下命令来获取回购脚本,并使其可执行:

I am trying to download Android source code for Contact,Dialer and CallLog applications from the git repository. I have tried the following on my mac(running SnowLeopard):
1. Create a bin dir and a android dir for putting all the downloaded files
2. Added both of the directories to the PATH environment variable
3. run the following commands to get the repo script and make it executable:

$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo

4。 CD的Andr​​oid目录
5.运行回购的init -u git的://android.git.kernel.org/platform/manifest.git -b升级Froyo

4. cd android dir 5. run repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo

当我运行此命令,我收到以下错误:

When I run this command, I am getting the following errors:

Traceback (most recent call last):
  File "/Users/xxxx/bin/repo", line 595, in <module>
    main(sys.argv[1:])
  File "/Users/xxxx/bin/repo", line 562, in main
    _Init(args)
  File "/Users/xxxx/bin/repo", line 181, in _Init
    _CheckGitVersion()
  File "/Users/xxxx/bin/repo", line 210, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 593, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1079, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

一个快速谷歌搜索会告诉我需要安装git的核心库。不幸的是,我不知道这是否是真正的问题或不,如果是这样,如何​​安装它。

A quick google search tells that I need to install git-core library. Unfortunately, I dont know if that is the real problem or not and if so, how to install it.

我是新来的Mac和Android和需要你的帮助。

I am new to mac and Android and need your help.

谢谢了。

推荐答案

您可能想要安装git的为OS X你可以在这里找到一个方便的安装程序:的 HTTP://$c$c.google.com/p/git-osx-installer/

You probably want to install git for OS X. You can find a handy installer here: http://code.google.com/p/git-osx-installer/

只要git的目录出现在$ PATH(我不记得如果安装程序,或者你就需要做手工),当它执行的Python脚本应该找到它。或者,您可以使它知道究竟在何处Git是破解python脚本。

As long as the git directory appears in your $PATH (I can't remember if the installer does this or you'd need to do it manually), that python script should find it when it's executed. Alternatively, you could hack the python script so that it knows exactly where git is.

这篇关于下载的Andr​​oid code为联系人应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆