externalNativeBuild { cmake { ... // Specifies the version of CMake the Android plugin should use. You need to // include the path to the CMake binary of this version to your PATH // environmental variable. version "3.13.4" } }
方法2:<项目根目录>/local.properties:
cmake.dir=E\:\\soft\\cmake-3.13.4-win64-x64
总结很傻就是了,只能一个一个项目的配置,不能全局的配置。做AS的大佬们有讨论过:https://groups.google.com/forum/#!topic/android-ndk/3WV5iNjISKY ,甩锅给gradle项目,2333. Greatness is never a given, it must be earned. 好文要顶 关注我 收藏该文 ChrisZZ 关注 - 43 粉丝 - 120 +加关注 0 0 « 上一篇: win7安装小米8驱动 » 下一篇: 基于GDI显示png图像 posted @ 2019-05-05 17:23 ChrisZZ 阅读(5436) 评论(3) 编辑 收藏