Bazel Installation Error #5241
Replies: 1 comment 1 reply
-
Hi @theMr17, Updated Answer: While following the Bazel Installation Steps, I missed out performing the one-time setup that is required before performing the installation command. Make sure to complete the one-time setup by following: sudo apt install apt-transport-https curl gnupg -y
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list and then install bazel using: sudo apt install bazel-4.0.0 and set bazel to the specified version by creating a symlink: sudo ln -s /usr/bin/bazel-4.0.0 /usr/bin/bazel Following this I was able to install bazel version 4.0.0 Original Answer: I tried to follow the provided steps for installing Bazel but was encountered with the same issue. So after a little bit of trial and error I was able to install it. Step 1: Step 2: Step 3: Step 4: Verify Installation: The outlined steps successfully facilitated the installation of Bazel on my device. If you encounter any challenges or issues during the process, please don't hesitate to reach out. I'll be ready to assist and address any concerns promptly. Regards, |
Beta Was this translation helpful? Give feedback.
-
Operating System
Windows 11
Android Studio Version
Android Studio Giraffe 2022.3.1 Patch 3
RAM size
16 GB
Free disk space
100 GB
Which step are you stuck on?
I am stuck on Step 4: Installing Bazel. I have done all the prior steps successfully.
Error Log
Approaches already used to resolve the issue
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions