我下载了csipsimple,编译成功。应用程序在 lolipop (5.0) 以下的 android 版本上运行良好,但是当我在 MARSHMALLOW (6.0) 中运行 android APK 时,android 应用程序崩溃了,并以 "无法加载 native 库。CPU arch 对此无效构建”。
我在运行时遇到以下异常:
02-09 18:11:51.236: E/SIP SRV(4758): RESET SETTINGS !!!! 02-09 18:11:53.979: E/PjService(4758): We have a problem with the current stack.... NOT YET Implemented 02-09 18:11:53.979: E/PjService(4758): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1290]: 113 cannot locate '__aeabi_ldiv0'... 02-09 18:11:53.979: E/PjService(4758): at java.lang.Runtime.loadLibrary(Runtime.java:370) 08-05 18:11:53.979: E/PjService(4758): at java.lang.System.loadLibrary(System.java:535) 02-09 18:11:53.979: E/PjService(4758): at com.csipsimple.pjsip.PjSipService.tryToLoadStack(PjSipService.java:151) 02-09 18:11:53.979: E/PjService(4758): at com.csipsimple.service.SipService.loadStack(SipService.java:1179) 02-09 18:11:53.979: E/PjService(4758): at com.csipsimple.service.SipService.onStart(SipService.java:1099) 02-09 18:11:53.979: E/PjService(4758): at android.app.Service.onStartCommand(Service.java:438) 02-09 18:11:53.979: E/PjService(4758): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2715) 02-09 18:11:53.979: E/PjService(4758): at android.app.ActivityThread.access$1900(ActivityThread.java:139) 02-09 18:11:53.979: E/PjService(4758): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1334) 02-09 18:11:53.979: E/PjService(4758): at android.os.Handler.dispatchMessage(Handler.java:99) 02-09 18:11:53.979: E/PjService(4758): at android.os.Looper.loop(Looper.java:154) 02-09 18:11:53.979: E/PjService(4758): at android.app.ActivityThread.main(ActivityThread.java:4944) 02-09 18:11:53.979: E/PjService(4758): at java.lang.reflect.Method.invokeNative(Native Method) 02-09 18:11:53.979: E/PjService(4758): at java.lang.reflect.Method.invoke(Method.java:511) 02-09 18:11:53.979: E/PjService(4758): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 02-09 18:11:53.979: E/PjService(4758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 02-09 18:11:53.979: E/PjService(4758): at dalvik.system.NativeStart.main(Native Method)
谁能帮我摆脱这个。?
最佳答案
关于android - 无法加载 native 库。 CPU 架构对于 marshmallow(6.0) 中的此版本无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35309324/