2023年6月27日发(作者:)
Mac11.5编译Android源代码报错汇集1. 问题⼀fatal: Cannot get /git-repo/fatal: error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)fatal: cloning the git-repo repository failed, will remove '.repo/repo'解决⽅法:在 import sys下⾯添加import sslssl._create_default_https_context = ssl._create_unverified_context2. 问题⼆repo: command not found解决⽅法:echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrcexport PATH=$PATH:$HOME/bin3. 问题三repo的运⾏过程中会尝试访问官⽅的git源更新⾃⼰,如果想使⽤tuna的镜像源进⾏更新,可以将如下内容>复制到你的~/.bashrc⾥export REPO_URL='/git/git-repo/'并重启终端模拟器。4. 问题四error: Unable to fully sync the : Downloading network changes re-running with "-j1 --fail-fast" to exit at the first @carlos-virtual-machine:~/Android/source$ repo sync -j1 --fail-fast部分代码同步失败解决⽅法:repo sync -j1 --fail-fast5. 问题五[100% 135/135] out/soong/.bootstrap/bin/soong_build out/soong/AILED: out/soong/ut/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/ -b out/soong -n out -dout/soong/.d -globFile out/soong/.bootstrap/ -o out/soong/ rnal error: Could not find a supported mac sdk: ["10.10" "10.11" "10.12" "10.13" "10.14"]internal error: Could not find a supported mac sdk: ["10.10" "10.11" "10.12" "10.13" "10.14"]17:15:02 soong bootstrap failed with: exit status 1failed to build some targets (25 seconds)解决⽅案:下载Maxsdks 10.14下载地址复制到/Applications//Contents/Developer/Platforms/rm/Developer/SDKs/⽬录下,并修改/Applications//Contents/Developer/Platforms/rm/⽂件中的(此⽂件需要使⽤Xcode打开)MinimumSDKVersion 为10.146. 问题六opendir failed: .Spotlight-V100: Operation not permitted此问题是Mac最新系统的安全限制,按照⼀下步骤解决权限的限制解决⽅案:系统偏好设置--安全性和隐私---隐私--完全⽂件访问权限 选中终端。授予终端完全的访问权限
发布者:admin,转转请注明出处:http://www.yc00.com/web/1687841158a49917.html
评论列表(0条)