Den*_*nko 17 c++ java-native-interface cmake clang android-studio
在我的 AndroidStudio 项目中,我使用 JNI 和 CMake 和 CPP 代码创建了本机库。一切都构建并运行正常,但是当我尝试提交代码并将其推送到 git 时,CodeAnalysis 出现在“消息”底部选项卡中,向我显示错误:
Error:(1, 1) Unable to execute Clang-Tidy: clazy-standalone is not found or cannot be executed
Run Code Online (Sandbox Code Playgroud)
在“首选项”->“其他设置”->“Clang-Tidy”中,我看到“内置 Clang-Tidy 版本:13.0.0”和“使用外部 Clang-Tidy 而不是内置版本”的选项(未设置)
您能否告诉我在哪里可以找到 clazy-standalone 的设置(以进行设置)和/或至少抑制错误消息?
我是 C/CPP 编程的新手,主要用 kotlin/Java 编写
PS 我使用配备 MacOS BigSur 11.6.1 和 AndroidStudio Bumblebee 2021.1.1 Beta 5 的 MacBook Pro
小智 27
当我从 Android Studio Arctic Fox 更新到 Bumblebee 时,这也发生在我身上。
\n是什么为我解决了这个问题:\n转到Preferences\xe2\x86\x92Clangd并启用Use clang-tidy via clangd(还启用一些CLion builtin inspections)
小智 10
我有两种错误
首选项 -> 其他设置
-> 铿锵整齐
禁用Use external clang-tidy instead of built-in one:
解决了Unable to execute Clang-Tidy: clang-Tidy is not found or cannot be executed
-> 克朗格
使能够Use clang-tidy via clangd
解决了Unable to execute Clang-Tidy: clazy-standalone is not found or cannot be executed
这来自https://issuetracker.google.com/issues/218346038
发生这种情况是因为 Android Studio 不支持clazy,但该选项仍然在设置菜单中提供,在这种情况下,它似乎已启用。
启用后clang-tidy via clangd,无需执行任何操作。
当clang-tidy via clangd被禁用时,那么
clazy启用,将观察到此错误。要禁用clazy,请转至:Settings > Editor > Inspections > C++并取消选中clazy。
Android Studio 开发人员注意:我们应该检查是否可以在 Android Studio 中禁用这个愚蠢的功能。它似乎是特定于某些qt框架的工具。
| 归档时间: |
|
| 查看次数: |
8307 次 |
| 最近记录: |