[Android-NDK] Creating shared library and using them in Android Oreo 8 and 8.1

[Android-NDK] Creating shared library and using them in Android Oreo 8 and 8.1

In this post I’m going to show how to build shared library for android and using them. I’m using Ubuntu 16.04 LTS running inside a VM and Android Studio 3.2.1 running on windows 10.

Step1: Setting up the environment

  • Get Android NDK (https://developer.android.com/ndk/downloads). At the time of writing this post I’m using android-ndk-r19c-linux-x86_64.zip
  • Unizp the downloaded file and change directory into android-ndk-r19c. In this directory you should see a binary called “ndk-build”. We will use this binary to build the shared library.
Read More