Skip to content
This issue has been moved to a discussionGo to the discussion

error occurred in cc-rs: failed to find tool "aarch64-linux-android-clang++": No such file or directory #19773

Closed
@Alphapage

Description

@Alphapage

Hello,

I downloaded the android-activity repository, then I added it to my cargo.toml using local path and I get the following error:
error occurred in cc-rs: failed to find tool "aarch64-linux-android-clang++": No such file or directory

The project compiles successfully, but rust-analyzer fails.

Do I have to add anything to config.toml ?

Thank you in advance for your help.

Activity

Day-OS

Day-OS commented on May 18, 2025

@Day-OS

Had the same issue, what saved me was setting the paths manually

"rust-analyzer.cargo.extraEnv": {
            "CXX": "/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang++",
            "CC": "/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang"
        }
locked and limited conversation to collaborators on May 21, 2025
converted this issue into a discussion #19835 on May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Alphapage@Day-OS

        Issue actions

          error occurred in cc-rs: failed to find tool "aarch64-linux-android-clang++": No such file or directory · Issue #19773 · rust-lang/rust-analyzer