When using the Android SDK developed by Unisound, its so library only provides the version of armeabi, which causes the following error when it installed on the emulator.

The key error message is INSTALL_FAILED_NO_MATCHING_ABIS, which means that the so library imported does not have a corresponding architecture. The fundamental solution is to regenerate the so libraries of different architectures, but obviously not in this scenario. In order to debug on the simulator, the solution is to find build.gradle, add the following code in it:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
android {

......

splits {
abi {
enable true
reset()
include 'x86', 'armeabi', 'x86_64'
universalApk true
}
}

}

In the Build time, the APKs under multiple architectures will be generated at the same time. The different architectures contain the so libraries of the corresponding architecture and the universal includes the so libraries of all architectures.