I have an Android project that includes NDK code. From this code, I need to call functions from other libraries built using the NDK that I have in the jniLibs folder:
jniLibs/armeabi/libtess.so jniLibs/armeabi-v7a/libtess.so ...
if I try to load these libraries from java like System.loadLibrary ("tess"), it works fine. However, when I try to link my NDK library with it by adding this to build.gradle:
ndk { moduleName "myJNILib" stl "stlport_shared" ldLibs "log", "tess" }
he cannot find him.
And, of course, if I do not contact him, he cannot compile myJNILib, since he cannot find the characters. Is there a way to make this work with gradle? Or do I really need to build my library outside of gradle if I want to link with other ready-made libraries?
source share