https://developer.android.com/studio/projects/add-native-code.html#create-cmake-script ndk 基础教程 https://developer.android.com/ndk/guides/cmake.html#variables cmake 参数配置文档 https://developer.android.com/studio/build/build-variants.html gradle 文档 上述只做个记录。