Your copy of depot_tools is configured to fetch from an obsolete URL:
https://webrtc.bj2.agoralab.co/webrtc-mirror/depot_tools.git
OK to update it to https://chromium.googlesource.com/chromium/tools/depot_tools.git ? [Y/n] y
Remote URL updated.
curl: (35) OpenSSL SSL_connect: 连接被对方重设 in connection to chrome-infra-packages.appspot.com:443
curl: (35) OpenSSL SSL_connect: 连接被对方重设 in connection to chrome-infra-packages.appspot.com:443
/home/zlf/Videos/depot_tools/bootstrap_python3: 行 32: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: 没有那个文件或目录
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Error: There is a syntax error in .gclient
Line #1, character 2: "//添加以下内容"
出现这样的错误。
将下图中的中文全部删除即可。
vi .gclient
//添加以下内容
solutions = [
{ "name" : "src",
"url" : "https://webrtc.bj2.agoralab.co/webrtc-mirror/src.git@65e8d9facab05de13634d777702b2c93288f8849",
"deps_file" : "DEPS",
"managed" : False,
"safesync_url": "",
"custom_deps": {
},
},
]
target_os = ["linux"] /*根据需要Android, ios*/