Compiling and Using a C++ Library on Android with Android Studio

KVURD Blog Apps About Contact This post falls into the category of "write it down before I forget it". I know next to nothing about Android/Java development (approx 12 hours worth) but I knew I needed a certain C++ library for an upcoming app. I managed to get the C++ library working from java after 20+ attempts, 4 coffees and the better part of an evening. Most of the code here is cobbled together from these sources: Android Native Development Kit (NDK) , and included documentation. Running Native Code on Android Presentation by Cédric Deltheil StackOverflow: How to build c-ares library in Android (NDK) StackOverflow: Include .so library in apk in Android Studio Android Studio v0.23, NDK release 9, target SDK version of 8. Mac OS. These are the steps: Compile your library for Android Write the C/C++ wrapper for your library Configure gradle to package up you...

Linked on 2015-07-01 21:59:45 | Similar Links