安装
brew install bazelisk
问题解决
bazel --version,这个命令报错
could not resolve the version 'latest' to an actual version number: unable to determine latest version: could not list Bazel versions in GCS bucket: could not list GCS objects at https://www.googleapis.com/storage/v1/b/bazel/o?delimiter=/: could not fetch https://www.googleapis.com/storage/v1/b/bazel/o?delimiter=/: Get "https://www.googleapis.com/storage/v1/b/bazel/o?delimiter=/": EOF
解决方案:
echo "USE_BAZEL_VERSION=4.1.0" > .bazeliskrc
代码unsynced
bazel官网教学:https://bazel.build/start/java