我已经使用git克隆下载了Linphone-android源代码。当我将源代码导入eclipse时,没有发现错误。然后,我尝试在实际设备上运行该应用,但该应用无法加载并崩溃。这里是错误的logcat。我可以知道如何解决这个问题吗?什么是造成这个问题?无法在实际设备上运行Linphone-android源代码

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.(LinphoneCoreFactoryImpl.java:59)

04-09 11:19:37.332: E/AndroidRuntime(9930): ... 18 more

非常感谢您的帮助!

+1

建设项目有你下载了必需的本地库,生成的.so文件,并将其包含在你的项目? –

2012-04-09 03:57:24

+0

@Kai这些本地库是否包含在git clone中?如果是这样,是的。对不起,但我可以知道如何生成.so文件并将其包含在我的项目中?我有点新鲜。我真的需要帮助和指导。谢谢! –

2012-04-09 04:01:12

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐