Android NDK - 使用多个 NDK 构建构建应用

Android NDK - Build app with mulltiple NDK build

是否可以像这样在 build.gradle 中 link 多个本地库(用 C 编写):

externalNativeBuild {
    ndkBuild {
        path 'src/main/c/Lib1Android.mk'
        path 'src/main/c/Lib2Android.mk'
    }
}

当我使用它时,我的 JNI 文件看不到来自 Lib1 的本机函数:(

根据NdkBuild doc you need to specify only the root ndk-build script but in it you can call any number of other Android.mk files (here is discussed how to do this Android NDK: how to include Android.mk into another Android.mk (hierarchical project structure)?).