Fix INSTALL_FAILED_NO_MATCHING_ABIS when installing an APK
Codemia Knowledge Hub ·
INSTALL_FAILED_NO_MATCHING_ABIS means the APK contains native libraries (.so files) compiled for a CPU architecture the target device or emulator does not support. Fix it by including the right ABI in your build configuration, or by using an emulator image that matches the ABIs your APK ships. Only apps with native code (NDK, C/C++ libraries, or third-party SDKs with native components) hit this; pure Java/Kotlin apps never do.
What Android ABIs are
ABI stands for Application Binary Interface. It defines how compiled native code talks to the operating system at the machine code level. CPU architectures have incompatible instruction sets, so each needs its own binaries.
Android supports four primary ABIs:
| ABI | Architecture | Common devices |
armeabi-v7a | 32-bit ARM | Older phones and tablets |
arm64-v8a | 64-bit ARM | Most modern phones (Pixel, Samsung Galaxy, etc.) |
x86 | 32-bit Intel/AMD | Android emulators (older images) |
x86_64 | 64-bit Intel/AMD | Android emulators (modern images), some Chromebooks |
When an APK has native libraries, Android looks for .so files for the device's ABI. If none exist, installation fails with INSTALL_FAILED_NO_MATCHING_ABIS.
Why the ABIs do not match
The usual case is an ARM-only APK on an x86 emulator (or the reverse):
- Your app depends on a native library (e.g., SQLCipher, OpenCV, FFmpeg, or a Firebase SDK with native components).
- Your build configuration only includes ARM ABIs.
- You install the APK on an x86_64 emulator.
- The emulator finds no x86_64
.sofiles in the APK. - Installation fails with
INSTALL_FAILED_NO_MATCHING_ABIS.
Check the device's ABI:
Output example:
Check which ABIs the APK contains:
An APK with all ABIs shows:
If you see only lib/arm64-v8a/ and the emulator is x86_64, that is the failure.
Fix 1: include the required ABIs in build.gradle
Build native libraries for every target ABI:
Then rebuild:
The APK now has .so files for all four architectures, at the cost of a larger APK with four copies of each native library.
Targeting specific ABIs
If you deploy only to certain devices, narrow the filter:
This APK is smaller but fails on x86 emulators. Use it when you ship only to physical devices and test on ARM emulator images.
Fix 2: use an emulator image that matches the APK
Instead of changing the build, create an emulator for the ABIs the APK already has. In Android Studio:
- Open Tools > Device Manager.
- Click Create Virtual Device.
- Select a device definition (e.g., Pixel 7).
- On the system image screen, choose an image matching your APK's ABI.
On Apple Silicon Macs (M1/M2/M3), pick an arm64-v8a image for ARM APKs. It runs natively and avoids the mismatch. On Intel/AMD machines, pick an x86_64 image and make sure the APK includes x86_64 libraries.
Fix 3: APK splits for per-ABI APKs
Splits produce one small APK per architecture:
This generates:
Install the split that matches the target:
For Google Play, use Android App Bundles (AAB) instead of splits; the Play Store handles per-device delivery.
Fix 4: Android App Bundle (AAB) for distribution
With App Bundles, Google Play generates optimized APKs per device configuration, ABI included:
Upload the .aab to Google Play Console. Each user downloads only the native libraries their device needs.
To test a bundle locally, use bundletool:
Apple Silicon Macs and ARM emulators
On M1/M2/M3 Macs, the emulator runs ARM system images natively because the host is ARM. So:
- ARM APKs install and run fine.
- x86 APKs fail with
INSTALL_FAILED_NO_MATCHING_ABIS, because the emulator does not translate x86 instructions.
If you hit the error on Apple Silicon:
- Verify the emulator uses an
arm64-v8asystem image. - Make sure your ABI filters include
arm64-v8a. - Confirm third-party SDKs ship ARM64 native libraries.
Diagnosis checklist
ro.product.cpu.abilist lists every ABI the device supports, including compatibility layers. An ARM64 device typically supports both arm64-v8a and armeabi-v7a.
Mistakes that cause or hide the mismatch
Building only for ARM and testing on an x86 emulator. The most frequent cause. Add x86/x86_64 to abiFilters or switch to an ARM image.
Assuming the APK is corrupt. It is fine. The native libraries simply do not match the device's CPU.
Shipping all ABIs in release builds without splits or bundles. Four copies of native libraries inflate the download. Use splits or App Bundles in production.
Forgetting third-party native libraries. Even if your code is pure Kotlin, dependencies like react-native, flutter or realm may ship .so files for only some ABIs.
Using x86 images on Apple Silicon. The ARM host cannot run them efficiently. Use arm64-v8a images, the reverse of the traditional problem.
Ignoring ro.product.cpu.abilist. An ARM64 device can usually run ARMv7 code, so armeabi-v7a libraries may work without a dedicated arm64-v8a build.
Related reading
- INSTALL_FAILED_UPDATE_INCOMPATIBLE when I try to install compiled .apk on device
- INSTALL_FAILED_USER_RESTRICTED android studio using redmi 4 device
- Install .ipa to iPad with or without iTunes
- Install shows error in console INSTALL FAILED CONFLICTING PROVIDER
- Installation failed with message Error android.os.ParcelableException java.io.IOException Requested internal only, but not enough space
- Installation Issue with matplotlib Python
- Installing ADB on macOS
- Instantiate and Present a viewController in Swift
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.