在這裏我正在一個本地SIP工具。PJSUA2 sip android native app |無法加載pjsua2
我跟着從這裏爲Android的入門PJSIP:
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
一切製成,建立了完善。但是,當我開始應用,它給我以下異常:
01-21 22:21:55.374 664-664/org.pjsip.pjsua2.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Couldn't load pjsua2 from loader dalvik.system.PathClassLoader[dexPath=/data/app/org.pjsip.pjsua2.app-1.apk,libraryPath=/data/app-lib/org.pjsip.pjsua2.app-1]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:355)
at java.lang.System.loadLibrary(System.java:525)
at org.pjsip.pjsua2.app.MyApp.<clinit>(MyApp.java:272)
at org.pjsip.pjsua2.app.MainActivity.onCreate(MainActivity.java:92)
at android.app.Activity.performCreate(Activity.java:5372)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)
at android.app.ActivityThread.access$700(ActivityThread.java:159)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at dalvik.system.NativeStart.main(Native Method)
這裏有人PJSUA2 sip android native app說,這可能是NDK版本。我嘗試過:r10e和r8e
我正在使用Android Studio。我從eclipse導入創建Gradle文件,然後用android studio打開後
喜@里亞茲·哈桑,**的應用程序/ src目錄/主/ jniLibs **採用的是Android工作室** app/src/org.pjsip **包?或者我應該在src文件夾內創建一個** main **包? – LTroya
[Image](http://es.tinypic.com?ref=n1xrfn)這是我的目錄和從Eclipse導入的漸變,以便能夠在Android Studio上使用它 – LTroya
我沒有看到任何照片.. –