[英]Android NDK - Build app with mulltiple NDK build
Is it possible to link multiple native libraries(written in C) in build.gradle like this:是否可以像这样在 build.gradle 中链接多个本机库(用 C 编写):
externalNativeBuild {
ndkBuild {
path 'src/main/c/Lib1Android.mk'
path 'src/main/c/Lib2Android.mk'
}
}
When I use this my JNI file can't see native functions from Lib1:(当我使用它时,我的 JNI 文件看不到来自 Lib1 的本机函数:(
According to 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)? ). According to 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(分层项目结构)? )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.