如何从GitHub检出android源码

时间:2014-07-20 07:06:08

标签: android github

我想知道如何配置repo工具从GitHub下载android源代码。

我使用repo脚本

为源代码创建了存储库
repo init --repo_url='https://github.com/android/tools_repo.ig' -u https://github.com/android/platform_manifest.git -b android-4.4_r1

当我尝试 repo sync 时,我收到以下错误消息:

fatal: repository 'https://github.com/platform/packages/apps/PhoneCommon/' not found
fatal: repository 'https://github.com/platform/external/arduino/' not found
fatal: repository 'https://github.com/platform/external/chromium-libpac/' not found
fatal: repository 'https://github.com/platform/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/' not found

1 个答案:

答案 0 :(得分:0)

this answer开始,最好使用https://android.googlesource.com/platform/manifest代替GitHub:

repo init --repo_url='https://android.googlesource.com/tools/repo' -u https://android.googlesource.com/platform/manifest -b android-4.4_r1

注意:我认为.ig位于" https://github.com/android/tools_repo.ig"是一个错字。
我也使用它的android url等价物:https://android.googlesource.com/tools/repo