2017-08-30 66 views
0

我試圖從android源代碼(android-5.1.1_r9)獲取一個克隆,因爲它的描述爲here。在(Ubuntu 16.04)終端中運行命令後,它不會下載任何內容。該文件夾保持空白。如何下載android源碼?

[email protected]:~/Desktop/workspace/original_sources$ repo init -u https://android.googlesource.com/platform/manifest -b android-5.1.1_r9 
Get https://gerrit.googlesource.com/git-repo/clone.bundle 
Get https://gerrit.googlesource.com/git-repo 
remote: Finding sources: 100% (9/9) 
remote: Total 9 (delta 1), reused 9 (delta 1) 
Unpacking objects: 100% (9/9), done. 
From https://gerrit.googlesource.com/git-repo 
    c94d6eb..9ead97b master  -> origin/master 
Get https://android.googlesource.com/platform/manifest 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
    0  0 0  0 0  0  0  0 --:--:-- 0:00:04 --:--:--  0 
curl: (22) The requested URL returned error: 404 Not Found 
Server does not provide clone.bundle; ignoring. 
remote: Counting objects: 523, done   
remote: Total 5705 (delta 1529), reused 5705 (delta 1529)   
Receiving objects: 100% (5705/5705), 4.21 MiB | 248.00 KiB/s, done. 
Resolving deltas: 100% (1529/1529), done. 
From https://android.googlesource.com/platform/manifest 
* [new branch]  adt_23.0.3 -> origin/adt_23.0.3 
* [new branch]  afw-test-harness-1.5 -> origin/afw-test-harness-1.5 
* [new branch]  afw-test-harness-2.1 -> origin/afw-test-harness-2.1 
* [new branch]  afw-test-harness-marshmallow-dev -> origin/afw-test-harness-marshmallow-dev 
* [new branch]  afw-test-harness-nougat-dev -> origin/afw-test-harness-nougat-dev 
* [new branch]  android-1.6_r1 -> origin/android-1.6_r1 
* [new branch]  android-1.6_r1.1 -> origin/android-1.6_r1.1 
* [new branch]  android-1.6_r1.2 -> origin/android-1.6_r1.2 
* [new branch]  android-1.6_r1.3 -> origin/android-1.6_r1.3 
* [new branch]  android-1.6_r1.4 -> origin/android-1.6_r1.4 
* [new branch]  android-1.6_r1.5 -> origin/android-1.6_r1.5 
* [new branch]  android-1.6_r2 -> origin/android-1.6_r2 

該過程繼續一系列的行,我不能粘貼所有這些。最後它結束如下。

* [new tag]   webview-m40_r1 -> webview-m40_r1 
* [new tag]   webview-m40_r2 -> webview-m40_r2 
* [new tag]   webview-m40_r3 -> webview-m40_r3 
* [new tag]   webview-m40_r4 -> webview-m40_r4 

Your identity is: Nuwan <[email protected]> 
If you want to change this, please re-run 'repo init' with --config-name 

repo has been initialized in /home/nuwan2/Desktop/workspace/original_sources 
[email protected]:~/Desktop/workspace/original_sources$ 
[email protected]:~/Desktop/workspace/original_sources$ ls 
[email protected]:~/Desktop/workspace/original_sources$ 

和我的文件夾保持空白。什麼地方出了錯?將Android源碼克隆到本地機器的正確方法是什麼?

+0

我沒有看到標記這個[tag:C]的點。 – muXXmit2X

回答