-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'x86_64' #47
Comments
Downgrading/upgrading the bazel verion (via bazelisk) didn't work. |
It is possible AS is using different bazel version. Have you configured the bazel binary path in AS settings to use bazelisk? |
Also worth running |
Tried |
If you're still running into this problem, and if your app has native dependencies (e.g.
and set the |
@snazhmudinov Still running into this issue? |
Not OP but I was able to resolve the issues by using r25 for the ndk instead of r21 |
If people are still running into this, I'd suggest upgrading Bazel versions to 6.0.0 or higher and seeing if the problem persists, and if you're using a newer NDK version, to use https://github.com/bazelbuild/rules_android_ndk in place of the native I think it would be prudent to close out this bug, since there seem to be multiple solutions/workarounds, and little activity in this thread. I'll circle back in a week and close this out if there are no objections. |
Sorry for the silence. I will check with the new bazel version. Meanwhile I'm closing this issue. Thank you! |
Adding support for Bzlmod
Machine setup:
macOS Monterey 12.4
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
bazel version installed:
5.0.2
I'm getting familiarized with Bazel, and trying to sync the small Android project in AS.
Tutorial: https://bazel.build/tutorials/android-app
However, when I sync via AS UI, I get the following error:
I have no issue building and deploying the app via the terminal.
Can someone please explain what I'm doing wrong? Thanks.
The text was updated successfully, but these errors were encountered: