在Android上运行CMAKE 3.18.1
在使用CMAKE 3.18.1运行项目时,我执行了以下步骤:
我在build.gradle上添加了
externalnativeBuild {cmake {cmake {path file('src/main/main/cpp/cmakelists)上请求的版本。 txt')版本'3.18.1'}}
- 我在build.gradle上添加了
externalNativeBuild {cmake {path file('src/main/cpp/cmakelists.txt')版本'3.18.1'}}
添加的 。在DefaultConfig上
cmakelist
cmake_minimin_required(版本3.18.1)
我获得了错误消息[cxx1405]构建JSON时出现问题时发生了一个问题,' /3.18.1/bin/cmake'''
我已经清理了该项目并无效,但仍然错误。我尝试增加版本,但有很多错误。谢谢
Got error when running my project with CMake 3.18.1, I executed the following steps:
I added the version requested on build.gradle as
externalNativeBuild { cmake { path file('src/main/cpp/CMakeLists.txt') version '3.18.1' } }
And also add on defaultConfig
externalNativeBuild { cmake { cppFlags '' } }
Inside CmakeList
cmake_minimum_required(VERSION 3.18.1)
I got error message [CXX1405] exception while building Json A problem occurred starting process 'command '/Users/user/Library/Android/sdk/cmake/3.18.1/bin/cmake''
I already clean the project and invalidate cache, but still error. I try increase the version but got many error. thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我面临着完全相同的问题。这是ADB没有证明对Apple M系列芯片组的支持的问题。我找到了解决方案在这里。只需安装Rosetta即可。
google essue eslove tracker
I faced the exact same issue. This is an issue with ADB not proving support for Apple M series chipsets. I found the solution here . Simply install rosetta.
Google Issue Tracker
我发现该解决方案是需要从您的Co Worker中删除CMAKE或.cxx文件,然后再推入Git,因为生成文件,因此问题。谢谢
I found the solution is need remove CMake or .cxx file from your co worker before push to git, the issue because generate file. thanks
卸载并安装CMAKE版本3.18.1
uninstall and install cmake version 3.18.1