UnsatisfiedLinkError returned when calling native method

Beka Iglesias rbciglesias at gmail.com
Wed Jan 29 15:42:29 PST 2014


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?

Thanks,

Beka


2014-01-25 Sebastian Dröge <sebastian at centricular.com>

> On Fr, 2014-01-24 at 22:47 +0000, Beka Iglesias wrote:
> > Hi!
> >
> > So, I solved all the problems in tutorials gstreamer 1.2  .apk, (I had
> some
> > problem before in NDK), and I am now testing my  own live streaming
>  .apk,
> > which is crashing inmediately...with some calling native method in
> > Gstreamer_Activity.
>
> See below:
>
>
> > 01-18 20:25:35.153: D/dalvikvm(19425): Debugger has detached; object
> registry had 1 entries
> > 01-18 20:25:35.173: D/dalvikvm(19425): Trying to load lib
> /data/app-lib/tv.adtlantida.audioleaks-2/libgstreamer_android.so 0x42bd5638
> > 01-18 20:25:35.173: D/dalvikvm(19388): GC_CONCURRENT freed 280K, 2% free
> 16981K/17292K, paused 5ms+14ms, total 33ms
> > 01-18 20:25:35.183: D/dalvikvm(19425): Added shared lib
> /data/app-lib/tv.adtlantida.audioleaks-2/libgstreamer_android.so 0x42bd5638
>
> Loading GStreamer worked fine.
>
> > 01-18 20:25:35.183: D/dalvikvm(19425): Trying to load lib
> /data/app-lib/tv.adtlantida.audioleaks-2/libvideomultistreaming.so
> 0x42bd5638
> > 01-18 20:25:35.183: D/dalvikvm(19425): Added shared lib
> /data/app-lib/tv.adtlantida.audioleaks-2/libvideomultistreaming.so
> 0x42bd5638
> > 01-18 20:25:35.183: D/dalvikvm(19425): No JNI_OnLoad found in
> /data/app-lib/tv.adtlantida.audioleaks-2/libvideomultistreaming.so
> 0x42bd5638, skipping init
> > 01-18 20:25:35.183: W/dalvikvm(19425): No implementation found for
> native Ltv/adtlantida/audioleaks/GstreamerActivity;.nativeClassInit:()Z
> > 01-18 20:25:35.183: W/dalvikvm(19425): Exception
> Ljava/lang/UnsatisfiedLinkError; thrown while initializing
> Ltv/adtlantida/audioleaks/GstreamerActivity;
> > 01-18 20:25:35.183: W/dalvikvm(19425): Class init failed in newInstance
> call (Ltv/adtlantida/audioleaks/GstreamerActivity;)
>
> 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.
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140129/cf24dc79/attachment.html>


More information about the gstreamer-android mailing list