git android source code error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

git android source code error

1,327 Views
JayZhang
Contributor I

I want to git android2.3.4 source code from google, but I have a problem when doing it.

$ mkdir ~/bin 
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo 
$ chmod a+x ~/bin/repo
$ mkdir android
$ cd android
$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.4_r1
$ repo sync

but error occur:

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/jay/Project/android2.3/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/jay/Project/android2.3/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/jay/Project/android2.3/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/jay/Project/android2.3/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>

Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/jay/Project/android2.3/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/jay/Project/android2.3/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/jay/Project/android2.3/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/jay/Project/android2.3/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>

I have tried many times, but always this, any one can help me ?

Thanks!!




Labels (1)
0 Kudos
10 Replies

1,027 Views
JayZhang
Contributor I

Yes, I think this is net problem.

Wilson Hung said:

Jay, have you solved the problem already?

In addition, please also check network is working fine

DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>

0 Kudos

1,027 Views
XiaoPong
NXP Employee
NXP Employee

Jay, have you solved the problem already?

In addition, please also check network is working fine

DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>

0 Kudos

1,027 Views
JayZhang
Contributor I

Dear Wilson,

haha, I know you, we have co-worked ever...

Wilson Hung said:

Yes. Nice to meet you !!

0 Kudos

1,027 Views
XiaoPong
NXP Employee
NXP Employee

Yes. Nice to meet you !!

0 Kudos

1,027 Views
JayZhang
Contributor I

Are you Freescale Taipe Wilson Huang  ^0^

Wilson Hung said:

Make sure all necessary packages are well installed. Please follow suggestion on Android Initialing a Build Environment [1] to setup your build machine.



[1] Visit http://http://source.android.com/source/initializing.html to get official information about Android source code.

0 Kudos

1,027 Views
XiaoPong
NXP Employee
NXP Employee

Make sure all necessary packages are well installed. Please follow suggestion on Android Initialing a Build Environment [1] to setup your build machine.



[1] Visit http://http://source.android.com/source/initializing.html to get official information about Android source code.

0 Kudos

1,027 Views
JayZhang
Contributor I

I just want to download android2.3.4 source code!



Krishna Pavan said:

Means, the default images will just load Android.

If you want to develop an application or add something then you need a code, where you can modify it to suit your work.

0 Kudos

1,027 Views
KrishnaPavan
Contributor II

Means, the default images will just load Android.

If you want to develop an application or add something then you need a code, where you can modify it to suit your work.

0 Kudos

1,027 Views
JayZhang
Contributor I

You said make some editing means what? Can you tell me how to do it?

Krishna Pavan said:

If you just want to use pre-built images, then you can follow my post here.

http://imxcommunity.org/group/androiddevelopers/forum/topics/how-to...

If you want to download the code, make some editing in the code and use it, then you can continue with your usual download process.

0 Kudos

1,027 Views
KrishnaPavan
Contributor II

If you just want to use pre-built images, then you can follow my post here.

http://imxcommunity.org/group/androiddevelopers/forum/topics/how-to-use-pre-built-images?commentId=4...

If you want to download the code, make some editing in the code and use it, then you can continue with your usual download process.

0 Kudos