Updated 24 January 2024
In this blog, I am going to tell you that how to run your app in your emulator while using the native libraries.
When you have used any native libraries in your application and run into your emulator then android studio show an error message:
Installation failed with message Failed to finalize session : INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
But this issue is not solved “by uninstalling an existing version of the apk if it is present, and then re-installing“.
Actually,
INSTALL_FAILED_NO_MATCHING_ABIS
is when you are trying to install an app that has native libraries and it doesn’t have a native library for your cpu architecture.
There is a simple script, which has to written in your build.gradle,
12345678910 android {splits {abi {enable truereset()include 'x86', 'armeabi-v7a'universalApk true}}}
After that clean your project and run your application on the emulator.
Once the code is compiled, your application accesses the binary data in the library through the ABI. The ABI defines the structures and methods that your compiled application will use to access the external library (just like the API did), only on a lower level.
Source: SO-link
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
4 comments