INSTALL_FAILED_NO_MATCHING_ABIS when install apk ?

Sometime when we install apk in Genymotion or Android Emulator this error comes and apk fail to install in vertual device. Also we get following error in trace
$ adb shell pm install -r "/data/local/tmp/com.instamasti"
Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
$ adb shell pm uninstall com.instamasti
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK
Error Dialog


Cause of this issue
  This problem also come with when working with unity also. The problem is your app uses ARM architecture and the device or emulator that you are trying to install the app support otherwise such as x86. Try installing it on ARM emulator. Hope that solves the problem.
Solution For this issue
There could be 2 solutionn for this problem.
Solution 1:
If you are working on NDK and you creating binary file then
In your application.mk, try to add x86 at
APP_ABI := armeabi-v7a
and it should be look like this
APP_ABI := armeabi-v7a x86
Solution 2:
When you are using third party library or you have binary file then you need to add extra line in you build.gradle
I was able to use the x86 Accelerated (HAXM) emulator by simply adding this to my Module's build.gradle script Inside android{} block:
 android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.appname"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    splits {
        abi {
            enable true
            reset()
            include 'x86', 'armeabi-v7a'
            universalApk true
        }
    }

Please comment below for any query and also please appreciate if you feel helpful.

Source

Previous
Next Post »

52 comments

Click here for comments
Em man
admin
6 November 2016 at 02:53 ×

Thanks it works as expected

Reply
avatar
naitik patel
admin
23 February 2017 at 02:08 ×

Is still not working.....

Reply
avatar
Unknown
admin
26 February 2017 at 07:43 ×

What issue are you facing? Please explain me more.

Reply
avatar
Cole
admin
20 March 2017 at 20:58 ×

I'm rather clueless about code however the client I'm working for has a task including such as you described; so my question to you is: where in the hell do I even go to go about setting up such a task?? I'm somewhat versed in the ways of Android Studio however I am chiefly working with the emulate function so the rest of the [evidently highly capable] app builder is somewhat of a mystery to me. Any help with my ineptitude is highly appreciated! (especially that in a timely manner) Cheers!

Reply
avatar
Unknown
admin
23 March 2017 at 02:51 ×


I will be happy to help if you can elaborate more about your requirement or issues.
By the way this code you need to paste in module gradle. this will break your app for different ABIS.

Thanks
Cheer

Reply
avatar
TomPerys
admin
7 April 2017 at 11:38 ×

Hi, I have problems with installing existing app. I downloaded several versions of Opera mini apk files and trying to install them to virtual device with Android 5.1 or 6 but I have always taht error "Failure [INSTALL_FAILED_NO_MATCHING_ABIS]". I tried to install different images in SDK Platforms tab (x86, v7a) but still nothing. I dont know if you have to choose somewhere on whichimage the virtual device will work?? But anyway the app should work I think for any of them.

My goal is just to have Opera aplication in the virtual device so I can test web pages in different browsers on different android versions.

Reply
avatar
Unknown
admin
19 April 2017 at 03:08 ×

it will work on armiabi type of devices. You can find out in Kitkat emulator.

Reply
avatar
TomPerys
admin
19 April 2017 at 03:19 ×

Sorry i dont know what you mean wxactly, can you explain it in more detail? Do I need to find whole different emulator? I need this for android 5.1, android 6 and android 7 (i dont want to test the old 4.4 kitkat android).

Reply
avatar
Freedom Apk
admin
9 November 2017 at 23:39 ×

No more live link in this comments field

Reply
avatar
14 December 2017 at 21:10 ×

No more live link in this comments field

Reply
avatar
Arun
admin
24 January 2018 at 11:30 ×

No more live link in this comments field

Reply
avatar
Anonymous
admin
21 February 2018 at 04:35 ×

After I included a third party AAR file, this error came up but I tried your solution 2 and it solved my problem. I was using x86 based Nexus 5 virtual device on emulator. I included that splits block in build.gradle and yes it is thanks

Reply
avatar
jayash
admin
27 February 2018 at 03:00 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
14 April 2018 at 10:03 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
26 April 2018 at 12:39 ×

2nd Option worked with OpenCV, Thanks!

Reply
avatar
lucky patcher alternatives
admin
8 May 2018 at 02:52 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
2 July 2018 at 10:01 ×

hi then. I already put your code but it still not working, please help me.
Please show me your email and I will send you my error.

Reply
avatar
Unknown
admin
2 July 2018 at 10:02 ×

Sorry. My email is ng.huuquang101088@gmail.com

Still waiting for your reply.

Thanks

Reply
avatar
Max
admin
9 October 2018 at 11:00 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
5 December 2018 at 15:32 ×

No more live link in this comments field

Reply
avatar
Anonymous
admin
17 January 2019 at 23:28 ×

No more live link in this comments field

Reply
avatar
Anonymous
admin
22 January 2019 at 01:05 ×

Will it generate multiple APK's ?

Reply
avatar
Jim
admin
22 January 2019 at 01:10 ×

After adding this are we able to run the APK in all devices ? x86 or ARM ?

Reply
avatar
Unknown
admin
22 January 2019 at 01:28 ×

Yes, this will generate multiple APK for different chip set (CPU ABI)

Reply
avatar
Anonymous
admin
6 November 2019 at 18:07 ×

but my .apk doesnt have a build.gradle module?

Reply
avatar
22 March 2020 at 22:37 ×

Some of code was unable to parse, please revise the line 133 in $syntax, thank you.

Reply
avatar
Tech News
admin
28 March 2020 at 12:05 ×

I am still facing the issue that INSTALL_FAILED_NO_MATCHING_ABIS after putting that code in the gradle can you plz help me with this

Reply
avatar
Anonymous
admin
30 May 2020 at 13:41 ×

Your solution worked for me, many thanks for your help :-)

Reply
avatar
16 June 2020 at 08:05 ×

I am trying to include Microsoft SignalR libraries and then this issue happens and the only solution available on internet which is this, does not work for me. Any help is greatly appreciated. Thanks in advance.

Reply
avatar
27 August 2020 at 10:24 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
2 September 2021 at 23:34 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
8 September 2021 at 03:58 ×

No more live link in this comments field

Reply
avatar
9 September 2021 at 00:39 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
9 September 2021 at 02:43 ×

No more live link in this comments field

Reply
avatar
10 September 2021 at 02:23 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
14 September 2021 at 02:41 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
15 September 2021 at 03:56 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
16 September 2021 at 04:14 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
17 September 2021 at 04:21 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
23 September 2021 at 00:08 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
28 September 2021 at 01:10 ×

No more live link in this comments field

Reply
avatar
Unknown
admin
7 October 2021 at 02:50 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
8 October 2021 at 02:52 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
2 November 2021 at 04:00 ×

No more live link in this comments field

Reply
avatar
sheikhali
admin
23 November 2021 at 22:10 ×

No more live link in this comments field

Reply
avatar
Malik Nouman
admin
26 November 2021 at 02:50 ×

No more live link in this comments field

Reply
avatar
2 March 2022 at 05:03 ×

No more live link in this comments field

Reply
avatar
Anonymous
admin
12 March 2022 at 20:59 ×

No more live link in this comments field

Reply
avatar
Mr Nath
admin
24 November 2022 at 23:10 ×

https://androidlad.blogspot.com/2016/10/installfailednomatchingabis-when.html

Reply
avatar

ConversionConversion EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng