由以下原因引起:java.lang.UnsatisfiedLinkError:无法从加载程序加载gnustl_shared dalvik.system.PathClassLoader findLibr



大家好,我对Linephone android源代码有问题。Linephone为我们提供了多个平台的开源代码.我目前正在使用来自其git Repository for android的LinePhone android源代码。

这是我做的。 1. 查看源代码表单 Git.url https://www.linphone.org/technical-corner/linphone/downloads

2.将项目打开到安卓工作室 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是什么? 让我帮忙解决这个问题。

提前谢谢。

使用您的安装管理器(取决于您的设备,如aptitudehomebrewmacports)安装 liblinphone 所需的gnustlgnu相关(如libstdc++6:i386libgcc1:i386zlib1g:i386libncurses5:i386)

请参考 : https://github.com/BelledonneCommunications/linphone-android#compilation-instructions

找不到libtoolize,即使我已经在OSX Yosimite中安装了libtool

最新更新