这个问题可能是因为Android Studio不支持clazy,但是在设置菜单中仍然提供了这个选项,并且在这种情况下,它似乎被启用了¹。当通过clangd启用clang-tidy时,没有什么需要做的。当通过clangd禁用clang-tidy时,如果启用了clazy,就会出现这个错误¹。
要解决这个问题,你可以尝试以下步骤:
1. 转到设置(Settings) -> 编辑器(Editor) -> 检查(Inspections) -> C++,取消选中clazy¹。
2. 如果上述步骤不能解决问题,你可以尝试转到Preferences → Clangd并启用Use clang-tidy via clangd¹。
(1) Error:(1, 1) Unable to execute Clang-Tidy: clazy-standalone is not .... https://stackoverflow.com/questions/70840061/error1-1-unable-to-execute-clang-tidy-clazy-standalone-is-not-found-or-cann.
(2) Error:(1, 1) Unable to execute Clang-Tidy: clazy-standalone is not .... https://www.stackoverflow.com/questions/70840061/error1-1-unable-to-execute-clang-tidy-clazy-standalone-is-not-found-or-cann/71491480.
(3) Android studio冇法執行Clang-Tidy:事因稳吾到或冇法執行clazy-standalone.. https://www.bookcard.net/wordpress/android_studio_unable_to_execute_clang_tidy_clazy_standalone_is_not_found_or_cannot_be_sexecuted/.