Android JNI series detailed explanation of JNI and NDK environment construction and compilation tool installation

This article mainly introduces the construction of JNI and NDK environment variables, as well as the installation of CMake tools and ndk-build tools.

1. JNI environment

JNI is part of Java, so you only need to build a Java environment to have a JNI environment. You can find tutorials online for installing Java environment, and there are many blogs about installing JDK. My computer is installed and environment variables are configured:

2. NDK environment 

Local development kit: Download through AndroidStudio: SDK Manager->SDK Tools->NDK

3. Installation of CMake tools 

CMake is downloaded through Android Studio: SDK Manage -> SDK Tools ->CMake

4. ndk-build tool installation 

After installing NDK in the third step above, it comes with the ndk-build tool. Therefore, my computer already has the ndk-build tool.

 

Guess you like

Origin blog.csdn.net/sunbinkang/article/details/132397970