Include a static library in a shared library using Gradle National Binary Support

I have 2 projects:

  • Static libray libSL.abuilt with NDK r9 and Android.mk.
  • An Android Studio project containing:
    • WL.java(JNI wrapper around libWL.so).
    • jniWL.hand jni/WL.c( libWL.sosource code) for which it is required libSL.a.
    • lib/libWL.so.

How do I turn libSL.ain libWL.soa Gradle support their own binaries ?

+4
source share
1 answer

, . , lib .

ndk {
    ...
    ldLibs "/some/path/libs/libcurl.a", "z", "log", "android", "EGL", "GLESv2", "OpenSLES"
}

. :

 stl "gnustl_static"

.so-.

0

Source: https://habr.com/ru/post/1541246/


All Articles