.linphone W/dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/linphone/core/FactoryImpl;
.linphone W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x4160ec08)
.linphone W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "random" referenced by "libbctool
.linphone W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:364)
.linphone W/System.err: at java.lang.System.loadLibrary(System.java:526)
.linphone W/System.err: at org.linphone.core.FactoryImpl.<clinit>(Factory.java:621)
.linphone W/System.err: at org.linphone.core.Factory.instance(Factory.java:49)
.linphone W/System.err: at com.flyscale.linphone.services.LinphoneService.onCreate(LinphoneService.java:92)
.linphone W/System.err: at android.app.ActivityThread.handleCreateService(ActivityThread.java:2679)
.linphone W/System.err: at android.app.ActivityThread.access$1800(ActivityThread.java:151)
.linphone W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1325)
.linphone W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
.linphone W/System.err: at android.os.Looper.loop(Looper.java:136)
.linphone W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5375)
.linphone W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
2023-08-29 14:15:50.920 11690-11690/com.flyscale.linphone W/System.err: at java.lang.reflect.Method.invoke(Method.java:515)
.linphone W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:989)
.linphone W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
.linphone W/System.err: at dalvik.system.NativeStart.main(Native Method)
这是因为编译linphone-sdk时使用的NDK版本与当前运行设备的Android版本不匹配导致的,例如我使用的设备是Android4.4,编译NDK使用的r20,于是降低为NDK-R18解决。