diff --git a/lib/src/main/cpp/CMakeLists.txt b/lib/src/main/cpp/CMakeLists.txt index c8054c0..22f51e5 100644 --- a/lib/src/main/cpp/CMakeLists.txt +++ b/lib/src/main/cpp/CMakeLists.txt @@ -79,7 +79,7 @@ endif () # Android target if (ANDROID) - set(CMAKE_ANDROID_STL_TYPE llvm-libc++_static) + set(CMAKE_ANDROID_STL_TYPE llvm-libc++_shared) find_library( log-lib diff --git a/lib/src/main/java/org/kiwix/libkiwix/JNIKiwix.java b/lib/src/main/java/org/kiwix/libkiwix/JNIKiwix.java index fa817c1..e0a3528 100644 --- a/lib/src/main/java/org/kiwix/libkiwix/JNIKiwix.java +++ b/lib/src/main/java/org/kiwix/libkiwix/JNIKiwix.java @@ -27,6 +27,7 @@ public class JNIKiwix { public JNIKiwix(final Context context) { + ReLinker.loadLibrary(context, "c++_shared"); ReLinker.loadLibrary(context, "kiwix"); ReLinker.loadLibrary(context, "zim"); ReLinker.loadLibrary(context, "kiwix_wrapper");