我正在尝试使用最新版linphone的新版本和库。
我的库编译好了,但是当我在模拟器中运行它时它会崩溃并返回:
4-22 07:28:32.250: W/dalvikvm(1262): No implementation found for native Lorg/linphone/core/LinphoneCoreFactoryImpl;.setLogCollectionPath:(Ljava/lang/String;)V
04-22 07:28:32.250: D/AndroidRuntime(1262): Shutting down VM
04-22 07:28:32.250: W/dalvikvm(1262): threadid=1: thread exiting with uncaught exception (group=0xb3ac7b90)
04-22 07:28:32.260: E/AndroidRuntime(1262): FATAL EXCEPTION: main
04-22 07:28:32.260: E/AndroidRuntime(1262): Process: org.linphone, PID: 1262
04-22 07:28:32.260: E/AndroidRuntime(1262): java.lang.UnsatisfiedLinkError: Native method not found: org.linphone.core.LinphoneCoreFactoryImpl.setLogCollectionPath:(Ljava/lang/String;)V
04-22 07:28:32.260: E/AndroidRuntime(1262): at org.linphone.core.LinphoneCoreFactoryImpl.setLogCollectionPath(Native Method)
04-22 07:28:32.260: E/AndroidRuntime(1262): at org.linphone.LinphoneService.onCreate(LinphoneService.java:136)
04-22 07:28:32.260: E/AndroidRuntime(1262): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2553)
04-22 07:28:32.260: E/AndroidRuntime(1262): at android.app.ActivityThread.access$1700(ActivityThread.java:135)
04-22 07:28:32.260: E/AndroidRuntime(1262): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1479)
04-22 07:28:32.260: E/AndroidRuntime(1262): at android.os.Handler.dispatchMessage(Handler.java:102)
04-22 07:28:32.260: E/AndroidRuntime(1262): at android.os.Looper.loop(Looper.java:137)
04-22 07:28:32.260: E/AndroidRuntime(1262): at android.app.ActivityThread.main(ActivityThread.java:4998)
04-22 07:28:32.260: E/AndroidRuntime(1262): at java.lang.reflect.Method.invokeNative(Native Method)
04-22 07:28:32.260: E/AndroidRuntime(1262): at java.lang.reflect.Method.invoke(Method.java:515)
04-22 07:28:32.260: E/AndroidRuntime(1262): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
04-22 07:28:32.260: E/AndroidRuntime(1262): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
04-22 07:28:32.260: E/AndroidRuntime(1262): at dalvik.system.NativeStart.main(Native Method)
答案 0 :(得分:1)
我面临同样的问题我通过使用以下解决方案解决了问题:
转到子模块/ linphone / coreapi / linphonecore_jni.cc
修改 linphonecore_jni.cc 文件。
更改为 - 将JNIEXPORT
替换为extern "C"
,并删除所有功能的JNICALL
关键字。
在您的情况下,从 linphonecore_jni.cc 文件中查找函数setLogCollectionPath
,然后对setLogCollectionPath
函数进行上述更改。