How to include *.so library in Android Studio?

Adding .so Library in Android Studio 1.0.2

  1. Create Folder “jniLibs” inside “src/main/”
  2. Put all your .so libraries inside “src/main/jniLibs” folder
  3. Folder structure looks like,

    |–app:

    |–|–src:

    |–|–|–main

    |–|–|–|–jniLibs

    |–|–|–|–|–armeabi

    |–|–|–|–|–|–.so Files

    |–|–|–|–|–x86

    |–|–|–|–|–|–.so Files
  4. No extra code requires just sync your project and run your application.

    Reference

    https://github.com/commonsguy/sqlcipher-gradle/tree/master/src/main

Leave a Comment