Oppia Android: Bazel Build Fails On Mac Os Due To Missing Remote Java Tools Darwin #6046
Unanswered
Sandesh282
asked this question in
Q&A (Installation)
Replies: 1 comment 6 replies
-
|
Hi @Sandesh282, this is an issue that we experience on Macs that we haven't been able to fully resolve yet. Please see #5791. My workaround is to open the problem BUILD file by running:
Then replacing the contents with the ones in the gist below: https://gist.github.com/adhiamboperes/8a213c84d4127db23ac660ae16e76fa2 The gist is modified to provide the missing tools. We are currently working on upgrading the project Bazel support to a newer version, and will hopefully have native support for Apple Silicon Macs. Please see #6021. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Operating System
MacOS
Android Studio Version
Android Studio Giraffe | 2022.3.1 Patch 4
RAM size
8 GB
Free disk space
100 GB
Which step are you stuck on?
I am stuck at the local build step while following the official Oppia Android installation guide:
https://github.com/oppia/oppia-android/wiki/Installing-Oppia-Android
Specifically, the failure occurs at the step where the app is built or run using Bazel:
The error happens during Bazel analysis / toolchain resolution, before any project code is compiled.
Error Log
Approaches already used to resolve the issue
Approaches already used to resolve the issue
I tried the following troubleshooting steps:
Verified Bazel version matches .bazelversion (Bazel 6.5.0)
Confirmed Bazel is using remotejdk_11 via bazel info
Verified .bazelrc already enforces:
Disabled bzlmod
Verified WORKSPACE includes:
Installed Xcode 15.4 alongside Xcode 16 and explicitly selected it:
Verified Xcode selection:
Fully reset Bazel state multiple times:
Attempted explicit Java toolchain registration (resulted in invalid toolchain error)
None of the above resolved the issue.
Additional information
OS: macOS (Apple Silicon, M-series)
Android Studio: Giraffe | 2022.3.1 Patch 4
Android Studio runtime (JBR): 17.0.6 (aarch64)
Java used by Bazel: Embedded remotejdk_11
Repo state: Clean clone
The failure appears to be an upstream incompatibility involving Bazel 6.5.0, the pinned rules_java version, and macOS Darwin toolchains, where @remote_java_tools_darwin is never materialized. Local macOS builds are currently blocked at the toolchain resolution stage.
Beta Was this translation helpful? Give feedback.
All reactions