Error screen:
It is because you are going to install app which has native library
and it doesn;t have a native library for your CPU architecture (suppose you are using Android Emulator). (e.g. if your compiled an app with ARM
architecture, you cannot run it on Intel
CPU)
How to
Add follwing code into your build.gradle
inside of Android
block:
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a', 'x86_64'
universalApk true
}
}
这个Error出现的原因是因为准备安装的app有本地库
,但是目标设备(可能是你的虚拟机)没有该库。比如你的app是用ARM架构编译的,但是目标设备是Intel架构的CPU。
如何解决
在你app的 build.gradle
里面的 Android
块加入:
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a', 'x86_64'
universalApk true
}
}