记录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

 

 

 

 

 

 

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