Error:Could not run Bazel info
Error:Could not run Bazel info
安装完Bazel插件后,sync 工程,结果出错了:
Error:Cannot run program "bazel" (in directory "/xxx/xxx"): error=2, No such file or directory
Error:Could not run Bazel info
后续搜索,查找到相关解决办法
- Navigate to Settings > Other Settings > Bazel Settings
- Update Bazel binary location to /usr/local/bin/bazel
Bazel binary location 是缺省值,所以需要设置为本地的执行文件。
可在https://github.com/bazelbuild/bazel/releases下载对应系统的版本,然后指定Bazel binary location位置