Giter VIP home page Giter VIP logo

Comments (10)

ted-xie avatar ted-xie commented on June 23, 2024 1

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.

snazhmudinov avatar snazhmudinov commented on June 23, 2024

Downgrading/upgrading the bazel verion (via bazelisk) didn't work.

from rules_android.

arunkumar9t2 avatar arunkumar9t2 commented on June 23, 2024

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.

snazhmudinov avatar snazhmudinov commented on June 23, 2024

i changed the bazel binary location to point to bazelisk, and it still gives the error :(
Screen Shot 2022-07-17 at 10 42 23 AM

from rules_android.

arunkumar9t2 avatar arunkumar9t2 commented on June 23, 2024

Also worth running clean ——expunge to force toolchain resolution to run again.

from rules_android.

snazhmudinov avatar snazhmudinov commented on June 23, 2024

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.

ahumesky avatar ahumesky commented on June 23, 2024

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.

ted-xie avatar ted-xie commented on June 23, 2024

@snazhmudinov Still running into this issue?

from rules_android.

omrta-dev avatar omrta-dev commented on June 23, 2024

Not OP but I was able to resolve the issues by using r25 for the ndk instead of r21

from rules_android.

snazhmudinov avatar snazhmudinov commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.