I am trying to use libmp3lame
in application developed in Android Studio.
Even though my gradle build is successful with the experimental gradle, I get an error when trying to open the activity as follows:
E/AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.xxx.xxxxx-1/base.apk"],nativeLibraryDirectories=[/system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]] couldn't find "libmp3lame.so"
Here is my source block from build.grade
:
android.sources {
main {
jni {
dependencies {
library file("libmp3lame.so") abi "x86"
}
}
}
}
Any ideas why Android cannot find the library?