Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 306
Denis Dmitrienko Avatar asked Sep 13 '25 15:09

Denis Dmitrienko


1 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)

like image 121
disho Avatar answered Sep 15 '25 04:09

disho