0

我创建了一个新的存储库并使用 .gitignore 推送 chromium 以避免在生成构建时不需要的库。然后我再次克隆并尝试使用上述步骤构建我收到错误。请帮我解决这个问题

由于我进行了代码更改,我无法从谷歌获得新的结帐

第 1 步:git 克隆https://chromium.googlesource.com/chromium/tools/depot_tools.git -完成

第 2 步:示例 export PATH="$PATH:/path/to/depot_tools" -完成

第 3 步:获取 --nohooks android -完成

第 4 步:gclient 同步完成

第 5 步:构建/安装-构建-deps-android.sh完成

第 6 步:gclient 运行钩子

第 7 步:gn args out/Default FAILED below error

ERROR Can't find source root.
I could not find a ".gn" file in the current directory or any parent,
and the --root command-line argument was not specified.
4

1 回答 1

0

是在 Linux 上运行吗?不支持 Windows 和 Mac。

于 2022-01-17T08:57:42.720 回答