記錄mac端下載android源碼過程中的錯誤

本文主要記錄下載過程中的錯誤,詳細的下載過程後續再補上,折騰這些錯誤折騰了很久,在此記錄一下

repo: command not found

      終端直接輸入:

      echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc

      export PATH=$PATH:$HOME/bin

 

 

repo下載源碼的時候卡頓:

       這是因爲 我們的vim ~/.bashrc 配置文件中 用的是谷歌的地址,我們要用國內的鏡像文件進行下載,在vim ~/.bashrc 文件     中配置:export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

       配置完成之後:source ~/.bash_profile

      清華大學repo:export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

      清華大學AOSP鏡像:#repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-6.0.1_r78

fatal: Cannot get https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/clone.bundle

fatal: error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

      打開 ~/bin/下的repo文件,vim進入。添加:

      import ssl

      ssl._create_default_https_context = ssl._create_unverified_context

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章