Error:(1, 1) Unable to execute Clang-Tidy: clazy-standalone is not found or cannot be executed in AndroidStudio

Viewed 2995

In my AndroidStudio project I created native library using JNI with CMake and CPP code. Everything builds and runs OK, but when I try to commit and push my code to git, the CodeAnalysis appears in the "Messages" bottom tab, showing me an error:

Error:(1, 1) Unable to execute Clang-Tidy: clazy-standalone is not found or cannot be executed

In Preferences -> Other settings -> Clang-Tidy I see "Built-in Clang-Tidy version: 13.0.0" and an option to "Use external Clang-Tidy instead of the built-in one" (which is not set)

Could you please tell me where to find the settings of clazy-standalone (to set it) and/or at least to suppress the error message?

I am a newbie in C/CPP programming, writing mostly in kotlin/Java

P.S. I use MacBook Pro with MacOS BigSur 11.6.1 and AndroidStudio Bumblebee 2021.1.1 Beta 5

2 Answers

This also happened to me when I updated from Android Studio Arctic Fox to Bumblebee.

What fixed it for me: Go to PreferencesClangd and enable Use clang-tidy via clangd (also enables some CLion builtin inspections)

I have two kinds of errors

Preferences -> Other settings

  1. -> Clang-Tidy

    disable Use external clang-tidy instead of built-in one:

    Solved Unable to execute Clang-Tidy: clang-Tidy is not found or cannot be executed

  2. -> Clanger

    enable Use clang-tidy via clangd

    Solved Unable to execute Clang-Tidy: clazy-standalone is not found or cannot be executed

Related