HarmonyOS鸿蒙Next中拉去源码报错显示没找到
HarmonyOS鸿蒙Next中拉去源码报错显示没找到 1、拉取代码用的是以下指令:
mkdir niobe407_src && cd niobe407_src
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
repo start master --all
- 执行
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
后显示
File "/usr/local/bin/repo", line 1165
main(sys.argv[1:])
SyntaxError: invalid syntax
怎么解决啊
更多关于HarmonyOS鸿蒙Next中拉去源码报错显示没找到的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于HarmonyOS鸿蒙Next中拉去源码报错显示没找到的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
在HarmonyOS鸿蒙Next中拉取源码时出现“没找到”的错误,可能是由于以下原因:
- 仓库地址错误:检查
repo
命令中的仓库地址是否正确。 - 网络问题:确保网络连接正常,尝试重新拉取。
- 权限问题:确认你有访问该仓库的权限。
- 分支或标签不存在:检查你指定的分支或标签是否存在。
- 本地配置问题:清理本地缓存,重新初始化
repo
。
建议使用repo init -u <仓库地址> -b <分支>
重新初始化,并确保所有配置正确。