Loading ShinobiCharts-android


I’m trying to follow the Android quickstart guide using the IntelliJ IDE, but keep running into this error:

Couldn’t load shinobicharts-android from loader dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.domain.appname-1.apk”],nativeLibraryDirectories=[/data/app-lib/com.domain.appname-1, /system/lib]]]: findLibrary returned null

I’ve added the libraries into the right places, as far as I can see (the quickstart guide only provides a guide for Eclipse), and the project compiles just fine, so what’s wrong?


??? No one ?


If you are you using Android Studio with a Gradle build you need to make sure the Shinobi native libraries get copied to your apk.

Here’s how I did it:

  1. Create a .zip file named shinobi.zip that contains the native libraries. The directory structure should look like this:

    -> armeabi
    -> libshinobicharts-android.so
    -> armeabi-v7a
    -> libshinobicharts-android.so
    -> mips
    -> libshinobicharts-android.so
    -> x86
    -> libshinobicharts-android.so

  2. Add the shinobi.zip file to you project libs directory:

    -> shinobicharts-android-trial-1.2.0.jar
    -> shinobi.zip

  3. Add the following compile dependecies to your build.gradle:

    compile files(“libs/shinobicharts-android-trial-1.2.0.jar”)
    compile files(“libs/shinobi.zip”)