UnsatisfiedLinkError returned when calling native method

Sebastian Dröge sebastian at centricular.com
Tue Feb 4 06:16:03 PST 2014


On Mi, 2014-01-29 at 23:42 +0000, Beka Iglesias wrote:
> Loading your own native library fails though, because you don't
> implement JNI_OnLoad in your own native library... and thus the Java
> class fails to load because it can't find nativeClassInit.
> 
> You didn't create a correct JNI library here.
> 
> I have implemented System.LoadLibrary with my own native library, as with
> gstreamer library...I read that JNI_OnLoad can be supply with this method.I
> have checked in folder libs (and my library is), in code is already
> implemented.I have found in stackoverflow a lot of similar issues, but the
> most of them were caused by running in emulator (and this is not my case).
> 
> Any idea to solve that?

You need to implement JNI_OnLoad and then let this work like a normal
JNI library.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140204/c4a683da/attachment.pgp>


More information about the gstreamer-android mailing list