android中的ABI过滤器导致应用程序崩溃 [英] application get crash because of ABI filters in android
问题描述
我正在使用 vitamio 来播放我使用gradle configure的视频和音频像下面一样
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"
}
它在所有android版本上都能正常工作.
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
像下面那样更改NDK配置后
after changing NDK configuration like below it working
ndk {
abiFilters "arm64-v8a","armeabi", "armeabi-v7a", "x86","x86_64", "mips"
}
但是现在只有在下面的日志下,Android 7上的vitamio才会崩溃
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
ABI存在问题,无法在vitamio中实现ABI: 'arm64'
的实现,任何人都可以帮助我解决此问题
there is issue with ABI there is no implementation available for ABI: 'arm64'
in vitamio can anyone help to me resolve this issue
谢谢
推荐答案
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
这篇关于android中的ABI过滤器导致应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!