无法在三星Galaxy S上运行Linphone-android源代码

时间:2014-02-17 07:51:20

标签: android linphone

我试图在Windows 7中运行linphone源代码,我git克隆了linphone源代码。没有错误...但是当我尝试在我的Galaxy S上运行它会让应用程序崩溃,然后我在Google上搜索并发现同样的崩溃报告,

Unable to run Linphone-android source code on actual device 04-09 11:19:37.332: E/AndroidRuntime(9930): FATAL EXCEPTION: main 04-09 11:19:37.332: E/AndroidRuntime(9930): java.lang.ExceptionInInitializerError 04-09 11:19:37.332: E/AndroidRuntime(9930): at java.lang.Class.classForName(Native Method) 04-09 11:19:37.332: E/AndroidRuntime(9930): at java.lang.Class.forName(Class.java:234) 04-09 11:19:37.332: E/AndroidRuntime(9930): at java.lang.Class.forName(Class.java:181) 04-09 11:19:37.332: E/AndroidRuntime(9930): at org.linphone.core.LinphoneCoreFactory.instance(LinphoneCoreFactory.java:43) 04-09 11:19:37.332: E/AndroidRuntime(9930): at org.linphone.LinphoneManager.startLibLinphone(LinphoneManager.java:460) 04-09 11:19:37.332: E/AndroidRuntime(9930): at org.linphone.LinphoneManager.createAndStart(LinphoneManager.java:271) 04-09 11:19:37.332: E/AndroidRuntime(9930): at org.linphone.LinphoneService.onCreate(LinphoneService.java:142) 04-09 11:19:37.332: E/AndroidRuntime(9930): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2208) 04-09 11:19:37.332: E/AndroidRuntime(9930): at android.app.ActivityThread.access$2500(ActivityThread.java:132) 04-09 11:19:37.332: E/AndroidRuntime(9930): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1102) 04-09 11:19:37.332: E/AndroidRuntime(9930): at android.os.Handler.dispatchMessage(Handler.java:99) 04-09 11:19:37.332: E/AndroidRuntime(9930): at android.os.Looper.loop(Looper.java:143) 04-09 11:19:37.332: E/AndroidRuntime(9930): at android.app.ActivityThread.main(ActivityThread.java:4277) 04-09 11:19:37.332: E/AndroidRuntime(9930): at java.lang.reflect.Method.invokeNative(Native Method) 04-09 11:19:37.332: E/AndroidRuntime(9930): at java.lang.reflect.Method.invoke(Method.java:507) 04-09 11:19:37.332: E/AndroidRuntime(9930): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 04-09 11:19:37.332: E/AndroidRuntime(9930): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 04-09 11:19:37.332: E/AndroidRuntime(9930): at dalvik.system.NativeStart.main(Native Method) 04-09 11:19:37.332: E/AndroidRuntime(9930): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load linphone: findLibrary returned null 04-09 11:19:37.332: E/AndroidRuntime(9930): at java.lang.Runtime.loadLibrary(Runtime.java:429) 04-09 11:19:37.332: E/AndroidRuntime(9930): at java.lang.System.loadLibrary(System.java:554) 04-09 11:19:37.332: E/AndroidRuntime(9930): at org.linphone.core.LinphoneCoreFactoryImpl.<clinit>(LinphoneCoreFactoryImpl.java:59) 04-09 11:19:37.332: E/AndroidRuntime(9930): ... 18 more

但我在这里找不到解决方案..什么是需要下载的本机库?我没有安装这些提到的autotools,我怎么能得到它们......请帮帮我......

2 个答案:

答案 0 :(得分:1)

您需要安装Android SDK和NDK

SDK:http://developer.android.com/sdk/index.html?utm_source=weibolife NDK:https://developer.android.com/tools/sdk/ndk/index.html(原生lib)

重要:您必须在系统中设置路径。 对于Win 7 - &gt; How to add android tools dir to windows 7 path?

如果路径不正确,您将收到“未找到Android NDK”等错误。

在linphone的根文件夹中,您会找到一个自述文件。按照步骤。 也许你必须使用linux或mac。我不知道它在Win 7上是否能正常工作。

让我知道它是否有效。

格雷茨

答案 1 :(得分:0)

无法构建linphone android源码几天尝试使用windows7(使用cygwin,autotools)。 但是在使用MAC构建后成功了。

这个问题的答案包含了所需的所有步骤。 Linphone for android is not working/missing libraries

相关问题