INSTALL_FAILED_NO_MATCHING_ABIS on Android 9


Question

I am trying to install an apk that contains armeabi-v7a native libraries, on an emulator with KVM enabled. When I try to install the apk on to the running device I am facing this error: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]



As per https://developer.android.com/studio/releases/emulator#30-0-0 the error above shouldn't occur on Android 9 or 11




Android 11 system images
You can now create an AVD that runs Android 11 by selecting either of the available API level 30 system images:



x86: Includes both x86 and ARMv7 ABIs.
x86_64: Includes x86, x86_64, ARMv7 and ARM64 ABIs.
Support for ARM binaries on Android 9 and 11 system images
If you were previously unable to use the Android Emulator because your app depended on ARM binaries, you can now use the Android 9 x86 system image or any Android 11 system image to run your app – it is no longer necessary to download a specific system image to run ARM binaries. These Android 9 and Android 11 system images support ARM by default and provide dramatically improved performance when compared to those with full ARM emulation.




My environment is Ubuntu 18.04 (LTS)
Here are some of my setup commands:



tools https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip



sdkmanager --install "system-images;android-28;default;x86" "emulator" "platform-tools" "platforms;android-28" (at this step feel free to replace x86 with x86_64)
Note I have tried with google-apis/playstore services and it allows the installation but fails at runtime.



avdmanager create avd -n "x86" -k "system-images;android-28;default;x86" (same steps of replacement apply)



emulator @x86 -no-boot-anim -noaudio -no-window -verbose -wipe-data -partition-size 1024 -qemu -enable-kvm



Is it something I'm missing? editing the build.prop file doesn't help.


Answer

Even though Google states that this works for the Android 9 and 10 images as well from my experience it works only for the Android 11 preview images.



I have tested this on Windows using the latest default x86 Google enabled images shown in the emulator manager for Android 10 and 11. As test app I used an Telegram armv7 only apk file from 2019:




  • Android-R - (Android 11 preview) Google Play Intel x86 Atom System Image (revision: 1)


    • Installation success, app start success


  • Android-29 (Android 10) - Google Play Intel x86 Atom System Image (revision: 8)


    • Installation failed INSTALL_FAILED_NO_MATCHING_ABIS




Therefore my results contradict to the Google description you quoted in your question. At the moment only the preview x86 images of Android R seem to be capable of running armv7 apps.



Test environment: Windows 10 64 bit with Intel Haxm installed.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes