Native Library Not Loaded From Cordova Apk
I'm making a cordova plugin that would be a simple wrapper for a .jar file and its two .so dependencies. I have tried it before in a normal android application with android studio.
Solution 1:
I've recently needed to cross-compile a C library for use in a Cordova app, so based on that experience, I've created an example Cordova plugin and corresponding test app that uses it.
If you look in my plugin.xml you'll see I also copy the armeabi
library to /libs/armeabi
, as well as the other libraries for the other architectures.
That plugin is definitely working (you can try it), so hopefully you can use it as a working reference.
Stupid question: you're not copying only the armeabi
library? Because I'm pretty sure most modern Android devices don't support that (ARMv5/ARMv6) and require armeabi-v7a
to be in /libs/armeabi-v7a
...
Post a Comment for "Native Library Not Loaded From Cordova Apk"