它工作正常但从今天开始崩溃 设备
Galaxy S7 Edge(hero2lte)
制造商Samsung Android版
Android 6.0 RAM(MB)4096 OpenGL ES 3.1版原生平台
armeabi-v7a CPU制造三星CPU型号Exynos 8890
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.metronomic.materno-2/base.apk"],nativeLibraryDirectories=[/data/app/com.metronomic.materno-2/lib/arm64, /data/app/com.metronomic.materno-2/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libopentok.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at com.opentok.android.Session.<clinit>(Session.java:52)
at com.metronomic.pregnancy.VideoConsultActivity.sessionConnect(VideoConsultActivity.java:506)
at com.metronomic.pregnancy.VideoConsultActivity.onCreate(VideoConsultActivity.java:155)
at android.app.Activity.performCreate(Activity.java:6876)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
at android.app.ActivityThread.access$1100(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
答案 0 :(得分:0)
刚刚找到解决方案: 将其添加到app level gradle。
defaultConfig {
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
}
但我想在添加此代码段后详细了解原因和差异。