Android Studio 下 NDK 编程
参考:http://www.jianshu.com/p/e689d0196a17
第一步:
配置 NDK 路径
File->Project Structure->SDK Locationl 里面添加路径
Android NDK location should not contain whitespace, as this can cause problems with the NDK tools.
Android NDK 的位置不应包含空格,因为这可能会导致与 NDK 工具问题。
第二步:
gradle.properties 配置
android.useDeprecatedNdk=true
第三步:
工程内的 build.gradle 添加 ndk 配置
defaultConfig {
applicationId "test.com.asproject"
minSdkVersion 16
targetSdkVersion