如何下载android源码?
How to download android source?
我正在尝试从 android 源 (android-5.1.1_r9) 中获取克隆,如 所述。在我 运行 (Ubuntu 16.04) 终端中的命令之后,它没有下载任何东西。该文件夹仍然是空的。
nuwan2@nuwan:~/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 <nuwanst722@gmail.com>
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
nuwan2@nuwan:~/Desktop/workspace/original_sources$
nuwan2@nuwan:~/Desktop/workspace/original_sources$ ls
nuwan2@nuwan:~/Desktop/workspace/original_sources$
我的文件夹仍然是空的。什么地方出了错?将 android 源克隆到本地计算机的正确方法是什么。
您应该在初始化后执行 repo sync
以获取源代码
Android 托管在 Google repo 中,这是一组相互关联的 git 存储库。
有关下载 Android 项目源代码的详细说明,请参见 official documentation。
我正在尝试从 android 源 (android-5.1.1_r9) 中获取克隆,如
nuwan2@nuwan:~/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 <nuwanst722@gmail.com>
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
nuwan2@nuwan:~/Desktop/workspace/original_sources$
nuwan2@nuwan:~/Desktop/workspace/original_sources$ ls
nuwan2@nuwan:~/Desktop/workspace/original_sources$
我的文件夹仍然是空的。什么地方出了错?将 android 源克隆到本地计算机的正确方法是什么。
您应该在初始化后执行 repo sync
以获取源代码
Android 托管在 Google repo 中,这是一组相互关联的 git 存储库。
有关下载 Android 项目源代码的详细说明,请参见 official documentation。