1、将 jni 文件夹名改为 cpp;
2、添加 CMakeLists.txt;
3、修改 build.gradle;
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
【参考】
https://developer.android.com/studio/projects/add-native-code.html
1、将 jni 文件夹名改为 cpp;
2、添加 CMakeLists.txt;
3、修改 build.gradle;
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
【参考】
https://developer.android.com/studio/projects/add-native-code.html