UnsatisfiedLinkError returned when calling native method

Sebastian Dröge sebastian at centricular.com
Sat Jan 25 08:59:26 PST 2014


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
-------------- 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/20140125/61641c9e/attachment.pgp>


More information about the gstreamer-android mailing list