如何解决这个GStreamer库java.lang.UnsatisfiedLinkError问题?

时间:2015-03-01 03:09:00

标签: java android gstreamer live-streaming

我试图在我的Android应用程序中使用GStreaming库,它编译并且一切似乎都没问题,但是当我运行应用程序时它会给我以下错误:

02-28 21:46:41.033  26177-26177/com.sebasdeldihotmail.parkeafit E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.sebasdeldihotmail.parkeafit, PID: 26177
    java.lang.UnsatisfiedLinkError: Couldn't load gstreamer_android from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.sebasdeldihotmail.parkeafit-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.sebasdeldihotmail.parkeafit-2, /vendor/lib, /system/lib, /system/lib/arm]]]: findLibrary returned null
            at java.lang.Runtime.loadLibrary(Runtime.java:358)
            at java.lang.System.loadLibrary(System.java:526)
            at com.sebasdeldihotmail.parkeafit.LasVegas.<clinit>(LasVegas.java:170)
            at java.lang.Class.newInstanceImpl(Native Method)
            at java.lang.Class.newInstance(Class.java:1208)
            at android.app.Instrumentation.newActivity(Instrumentation.java:1084)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2126)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2269)
            at android.app.ActivityThread.access$800(ActivityThread.java:139)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5102)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:803)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:619)
            at dalvik.system.NativeStart.main(Native Method)

有谁知道如何解决这个问题?我的大脑很干,我真的不知道该怎么做

非常感谢阅读。

这里是

static {
        System.loadLibrary("gstreamer_android");
        System.loadLibrary("rtsp");
        nativeClassInit();
    }

是的,有2个.so文件 叫做libgstreamer_android.so 和librtsp.co

0 个答案:

没有答案