[英]java.lang.UnsatisfiedLinkError: Couldn't load andenginephysicsbox2dextension from loader dalvik.system.PathClassLoader… findLibrary returned null
[英]Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gnustl_shared from loader dalvik.system.PathClassLoader findLibrary returned null
大家好,我對Linephone android源代碼有問題。Linephone為我們提供了多個Platform.I的開源代碼。我目前正在使用git倉庫中的LinePhone android源代碼。
我在這里做了。 1.簽出源代碼表格Git.url https://www.linphone.org/technical-corner/linphone/downloads
2.將項目打開到Android Studio中3.成功構建項目后,只需運行項目
它的運行成功完全,但我得到了這個錯誤。
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gnustl_shared from loader dalvik.system.PathClassLoader[dexPath=/data/app/org.linphone-1.apk,libraryPath=/data/app-lib/org.linphone-1]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:535)
at org.linphone.core.LinphoneCoreFactoryImpl.<clinit>(LinphoneCoreFactoryImpl.java:51)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:217)
at java.lang.Class.forName(Class.java:172)
at org.linphone.core.LinphoneCoreFactory.instance(LinphoneCoreFactory.java:47)
at org.linphone.LinphoneService.onCreate(LinphoneService.java:299)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2529)
at android.app.ActivityThread.access$1600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
在線
System.loadLibrary("gnustl_shared");
老實說,我不知道為什么會收到此錯誤,什么是gnustl_shared? 讓我來幫助解決這個問題。
提前致謝。
使用安裝管理器(取決於您的設備,如aptitude
或homebrew
或macports
),安裝gnustl
和gnu
相關文件(如libstdc++6:i386
libgcc1:i386
zlib1g:i386
libncurses5:i386
)
參考: https : //github.com/BelledonneCommunications/linphone-android#compilation-instructions
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.