Android Studio可以使用系统CMake吗? [英] Can Android Studio use the system CMake?

查看:111
本文介绍了Android Studio可以使用系统CMake吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Android Studio + CMake构建本机库. AS已请求安装CMake,即使我已经安装了CMake并且在我的路径上也是如此.您能告诉AS在某个位置寻找CMake而不是安装另一个CMake吗?

I'm using Android Studio + CMake to build a native library. AS requested installing CMake, even though I already have CMake installed and in my path. Can you tell AS to look for CMake at a certain location, instead of installing another CMake?

推荐答案

用于gradle 3.0的新Android插件将支持

The new Android plugin for gradle 3.0 will support using system CMake, for CMake 3.7+.

在该网页上:

  1. 从CMake官方网站下载并安装CMake 3.7或更高版本.

  1. Download and install CMake 3.7 or higher from the official CMake website.

在项目的local.properties文件中包括CMake安装的路径:

Include the path to the CMake installation in your project's local.properties file:

cmake.dir ="路径到cmake"

cmake.dir="path-to-cmake"

这篇关于Android Studio可以使用系统CMake吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆