MAC下載安卓源碼提示"gpg (GnuPG) is not available"
MAC下載安卓源碼提示"gpg (GnuPG) is not available"
在Mac系統下執行repo init 會提示:“gpg (GnuPG) is not available”:
話不多說,直接上解決辦法。
在終端執行:
export REPO_URL=‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo’
把鏡像換成清華大學。
warning: gpg (GnuPG) is not available.
Android整機源碼如何輕松下載?清華大學Android源碼鏡像
以下可能已經過期,最新的請參考清華大學TUNA官方幫助說明:https://mirrors.tuna.tsinghua.edu.cn/help/#AOSP
================================================================================================
今天發現,清華大學提供AOSP鏡像,以前都是從Google的站點下載同步更新的,但是現在有了國內的鏡像站點就好多了
幫助:http://mirrors.tuna.tsinghua.edu.cn/help/#AOSP
倉庫地址:
git://aosp.tuna.tsinghua.edu.cn/
使用瀏覽器訪問:
http://aosp.tuna.tsinghua.edu.cn/
一、下載android 源碼
1.下載 repo
git://aosp.tuna.tsinghua.edu.cn/git-repo.git/
2. 修改repo
google的地址
REPO_URL = 'https://gerrit.googlesource.com/git-repo'
改為清華大學的地址
REPO_URL = 'git://aosp.tuna.tsinghua.edu.cn/git-repo'
3.下載 manifest
google 的地址
$ repo init -u https://android.googlesource.com/platform/manifest
改為清華大學的地址
$ repo init -u git://aosp.tuna.tsinghua.edu.cn/platform/manifest
4.同步源碼
還是和以前一樣
$ repo sync
5.替換已有的AOSP源代碼的remote
如果你之前已經通過某種途徑獲得了AOSP的源碼,但是你希望以后通過TUNA同步,只需要將.repo/manifest.xml中的
<remote name="aosp"
fetch=".."
review="https://android-review.googlesource.com/" />
改為下面的code即可:
<remote name="aosp"
fetch="git://aosp.tuna.tsinghua.edu.cn/"
review="https://android-review.googlesource.com/" />
這個方法也可以用來在同步Cyanogenmod代碼的時候從TUNA同步部分代碼