Comments (10)
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 android_ndk_repository
.
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.
from rules_android.
Downgrading/upgrading the bazel verion (via bazelisk) didn't work.
from rules_android.
It is possible AS is using different bazel version. Have you configured the bazel binary path in AS settings to use bazelisk?
from rules_android.
i changed the bazel binary location to point to bazelisk, and it still gives the error :(
from rules_android.
Also worth running clean ——expunge
to force toolchain resolution to run again.
from rules_android.
Tried clean --expunge
as well, it didn't really help.
I'm fairly new to bazel, so at this point I wasn't sure how to proceed.
from rules_android.
If you're still running into this problem, and if your app has native dependencies (e.g. cc_library
), it might be that there needs to be an android_ndk_repository rule in your WORKSPACE
file:
android_ndk_repository(
name = "androidndk",
)
and set the ANDROID_NDK_HOME
environment variable to the path of a locally installed NDK (up to r21 is supported, see bazelbuild/bazel#12889)
from rules_android.
@snazhmudinov Still running into this issue?
from rules_android.
Not OP but I was able to resolve the issues by using r25 for the ndk instead of r21
from rules_android.
Sorry for the silence. I will check with the new bazel version. Meanwhile I'm closing this issue. Thank you!
from rules_android.
Related Issues (20)
- android_sdk_repository isn't compatible with Bzlmod HOT 7
- android_local_test incorrectly resolves the java executable path HOT 1
- Failure expected when android_library has `assets` but no `manifest`attr defined
- `android_application` rule doesn't support `select` statements for `manifest_values` field HOT 4
- min_sdk_version attribute of android_binary mistakenly enabled HOT 1
- Feature Request : add flags/ability to skip android resources linking validation
- Migrate to Bzlmod for managing external dependencies HOT 3
- Neverlink libraries not passed to R8
- Update `android_local_test` for Android Platforms
- android_local_test tests are very fragile
- sandboxedsdktoolbox tests not compatible with bzlmod HOT 5
- BazelCI has numerous problems HOT 2
- enforce_min_sdk_version requires lxml, which isn't present HOT 3
- GenerateSdkSplitPropertiesCommandTest fails with bzlmod HOT 4
- `android_sdk_repository` fails if non-integer platform level is installed HOT 2
- android_binary_internal transition failing during analysis HOT 1
- Enable android_instrumentation_test on mac
- jvm_import won't provide android_resource provider caused compose1.5.4 to break HOT 4
- Error no such target '@@remote_java_tools_darwin_x86_64//:turbine_direct_graal': target 'turbine_direct_graal' not declared in package . HOT 3
- Support bundling local resource from `resources/` dir into `android_library` and `android_binary` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_android.