application get crash because of ABI filters in android

我的未来我决定 提交于 2019-12-12 04:54:34

问题


i am using vitamio for play video and audio for that i have used gradle configure like below

 ndk {
               abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }

it working perfectly on all android version.

now i hava added JNI code using CMaker tutorial for some operation but application is get crash on android version 7 only with below log

 Build fingerprint: 'xiaomi/mido/mido:7.0/NRD90M/V8.5.4.0.NCFMIED:user/release-keys'
 Revision: '0'
 ABI: 'arm'
 pid: 27944, tid: 28106, name: SyncAdapterThre  >>> com.mypackage <<<
 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x29c
     r0 e4685300  r1 00000000  r2 074edc1e  r3 000004a1
     r4 00000000  r5 0000001a  r6 cf6b6740  r7 c63fecf0
     r8 c63feca8  r9 00000020  sl c63fecc8  fp 4ec4ec4f
     ip 2280b031  sp c63feca8  lr ec409776  pc cf6b6712  cpsr 60010030

after changing NDK configuration like below it working

 ndk {
        abiFilters "arm64-v8a","armeabi", "armeabi-v7a", "x86","x86_64", "mips"
           }

but now there is crash for vitamio on android version 7 only with below log

Build fingerprint: 'xiaomi/mido/mido:7.0/NRD90M/V8.5.4.0.NCFMIED:user/release-keys'
 Revision: '0'
 ABI: 'arm64'
 pid: 30859, tid: 30859, name: .onlineradioapp  >>> com.mypackage <<<
 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
     x0   00000000000017a8  x1   0000000000000000  x2   0000007f6c200000  x3   0000000000000002
     x4   00000000000001a1  x5   0000000000008080  x6   0000007fa5c62000  x7   0000000000000000
     x8   0000000000000000  x9   0000007fa1e0c688  x10  00000000000001a1  x11  0000000000000000
     x12  0000000000000018  x13  0000000000000000  x14  0000000000000000  x15  00326d4469b4dcca
     x16  0000007fa26625a0  x17  0000007fa26098a8  x18  00000000ffffffff  x19  0000007fe80b04e0
     x20  0000007f798baa90  x21  0000007f6c3a1480  x22  0000007f798da000  x23  0000007f798da000
     x24  0000007f798ba000  x25  0000000000000000  x26  0000000000200021  x27  56c8e96642a3fb3d
     x28  0000000000000001  x29  0000007fe80b0480  x30  0000007f798b344c
     sp   0000007fe80b0480  pc   0000000000000000  pstate 0000000020000000

there is issue with ABI there is no implementation available for ABI: 'arm64' in vitamio can anyone help to me resolve this issue

thank you


回答1:


hello-jni.c

Java_com_example_hellojni_HelloJni_stringFromJNI(JNIEnv *env,jobject thiz)

HelloJni.java

package com.example.hellojni;

static {
        System.loadLibrary("hello-jni");
    }

public native String  stringFromJNI();

I understand that the package is not the same reason



来源:https://stackoverflow.com/questions/46072318/application-get-crash-because-of-abi-filters-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!