三星手机总是报XXX已停止运行,或XXX屡次停止运行

三星手机总是报XXX已停止运行,或XXX屡次停止运行,如图:

三星手机总是报XXX已停止运行,或XXX屡次停止运行_第1张图片

打印日志如下:

03-07 16:05:16.257 32489-32489/com.yoto.ubox:ipc E/Zygote: v2
03-07 16:05:16.258 32489-32489/com.yoto.ubox:ipc E/Zygote: accessInfo : 0
03-07 16:05:16.298 32507-32507/io.rong.push E/Zygote: v2
03-07 16:05:16.300 32507-32507/io.rong.push E/Zygote: accessInfo : 0
03-07 16:05:16.527 32489-32489/com.yoto.ubox:ipc E/AndroidRuntime: FATAL EXCEPTION: main
                                                                   Process: com.yoto.ubox:ipc, PID: 32489
                                                                   java.lang.UnsatisfiedLinkError: dlopen failed: library "libsqlite.so" not found
                                                                       at java.lang.Runtime.loadLibrary0(Runtime.java:977)
                                                                       at java.lang.System.loadLibrary(System.java:1567)
                                                                       at io.rong.imlib.NativeObject.(NativeObject.java:8)
                                                                       at io.rong.imlib.NativeClient.init(NativeClient.java:169)
                                                                       at io.rong.imlib.LibHandlerStub.(LibHandlerStub.java:39)
                                                                       at io.rong.imlib.ipc.RongService.onBind(RongService.java:31)
                                                                       at android.app.ActivityThread.handleBindService(ActivityThread.java:3498)
                                                                       at android.app.ActivityThread.-wrap4(ActivityThread.java)
                                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1723)
                                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                       at android.os.Looper.loop(Looper.java:154)
                                                                       at android.app.ActivityThread.main(ActivityThread.java:6646)
                                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
                                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
03-07 16:05:16.557 32507-32551/io.rong.push E/RongLog-Push[PushDaemon]: daemon installed failed, pushDaemonName arm64-v8a


主要错误就是
java.lang.UnsatisfiedLinkError: dlopen failed: library "libsqlite.so" not found
因为7.0为了安全性,禁止访问系统内容,恰巧这货又是系统里的,所以就找不到了

下载libsqlite.so文件,下载链接点击打开链接解压后放在libs下对应文件夹里,如果点击没有打开,地址https://pan.baidu.com/s/1-CuoHkVeHvtG5_SWJ-p2-A,如图:

三星手机总是报XXX已停止运行,或XXX屡次停止运行_第2张图片

module 的gradle文件android中加

sourceSets{
    main{
        jniLibs.srcDirs=['libs']
    }
}
就好了。

你可能感兴趣的:(android应用,android,bug)