Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

INSTALL_FAILED_NO_MATCHING_ABIS how to overcome

Tags:

android

When installing my app to Android L preview it fails with error:

INSTALL_FAILED_NO_MATCHING_ABIS.

My app uses arm only library, features that uses library is disabled on x86. It works perfectly before Android L, but now i can't even install it. How to disable this error for my app?

like image 647
NermaN Avatar asked Jul 15 '14 06:07

NermaN


1 Answers

Posting this because I could not find a direct answer and had to look at a couple of different posts to get what I wanted done...

I was able to use the x86 Accelerated (HAXM) emulator by simply adding this to my Module's build.gradle script Inside android{} block:

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

Run (build)... Now there will be a (yourapp)-x86-debug.apk in your output folder. I'm sure there's a way to automate installing upon Run but I just start my preferred HAXM emulator and use command line:

adb install (yourapp)-x86-debug.apk
like image 92
Patrick Avatar answered Oct 03 '22 01:10

Patrick