Using a prebuilt shared Library in Android Studio (cmake)
I want to use a C++ shared library inside my Android App. I tried to follow along the hello-libs example from Google's NDK samples, but somehow it doesn't work out. It seems, that my library isn't packed into the APK. All tutorials i found are using *.mk -files, but I want to use cmake . This is my CMakeLists.txt: # Sets the minimum version of CMake required to build the native library. cmake_minimum_required(VERSION 3.4.1) # native lib add_library(native-lib SHARED native-lib.cpp) set(IMPORT_DIR ${CMAKE_SOURCE_DIR}/../jniLibs) # shared lib add_library(shared-lib SHARED IMPORTED) set_target