android在使用jni时,需要用到NDK,再build工程时,有时会出现Process 'command 'D:\AndroidNDK\android-ndk-r16b/ndk-build.cmd'' finished with non-zero exit value 2这个错误,在这时吧NDK版本改成14就好了,下载链接如下:
https://dl.google.com/android/repository/android-ndk-r14b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r14b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip