Android-ABIFilter-Device support

2018-09-27  本文已影响0人  全球顶尖伪极客

参考链接:https://blog.csdn.net/qq_32452623/article/details/71076023

前言:

有时候在使用模拟器或者手机运行的时候会报错,出现类似问题。程序支持的so为以下写法,进而导致不能运行在手机上。

'armeabi' , 'x86', //'armeabi-v7a', 'x86_64', 'arm64-v8a'是什么?

为 CPU 架构类型的名称。 android中支持的CPU架构有多种,

  ndk {
            // 设置支持的SO库架构
            abiFilters 'armeabi' , 'x86', //'armeabi-v7a', 'x86_64', 'arm64-v8a'
        }
device supports but apk only supports armeabi,x86

有时候不清楚我们自己的手机是属于哪种CPU可以参照以下命令进行查阅:

C:\Users\cc>adb shell
shell@m1note:/ $ cat /proc/cpuinfo
Processor       : AArch64 Processor rev 2 (aarch64)
processor       : 0
BogoMIPS        : 26.00

Features        : fp asimd aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: AArch64
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 2

Hardware        : MT6752
shell@m1note:/ $

最终结果,然并卵

上一篇 下一篇

猜你喜欢

热点阅读