Skip to content

ndk环境准备

  • Android Studio 3.6.3
  • macOS 10.14.4

下载安装NDK工具

在as的设置中找到 Android SDK

可以从设置中打开 Appearance & Behavior > System Settings > Android SDK

也可以打开 Tools - SDK Manager

ndk

选择SDK Tools页面。勾选NDK和CMake,点击「OK」。下载安装需要一些时间。

安装完成后,新打开一个命令行,输入ndk-build -v查看版本信息

ndk-build -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-apple-darwin

至此ndk工具已经安装完成。

CMake介绍