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
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.
If you are working on NDK and you creating binary file then
In your
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
Please comment below for any query and also please appreciate if you feel helpful.
Source
$ 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.
Technorati Tags: Apk Installation issue in Android Emulator,Android Development issues,Android Lad,Android for beginner
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-v7aand it should be look like this
APP_ABI := armeabi-v7a x86Solution 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
Find Best selfie editor app 'Selfiestan' https://t.co/msc7Ct7kwy— AndroidLad (@MrAndroidLad) September 19, 2017
52 comments
Click here for commentsThanks it works as expected
ReplyIs still not working.....
ReplyWhat issue are you facing? Please explain me more.
ReplyI'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
ReplyI 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
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.
ReplyMy goal is just to have Opera aplication in the virtual device so I can test web pages in different browsers on different android versions.
it will work on armiabi type of devices. You can find out in Kitkat emulator.
ReplySorry 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).
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyAfter 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
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
Reply2nd Option worked with OpenCV, Thanks!
ReplyNo more live link in this comments field
Replyhi then. I already put your code but it still not working, please help me.
ReplyPlease show me your email and I will send you my error.
Sorry. My email is ng.huuquang101088@gmail.com
ReplyStill waiting for your reply.
Thanks
No more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyWill it generate multiple APK's ?
ReplyAfter adding this are we able to run the APK in all devices ? x86 or ARM ?
ReplyYes, this will generate multiple APK for different chip set (CPU ABI)
Replybut my .apk doesnt have a build.gradle module?
Replythank youuuuu
ReplySome of code was unable to parse, please revise the line 133 in $syntax, thank you.
ReplyI 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
ReplyYour solution worked for me, many thanks for your help :-)
ReplyI 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.
Replynice
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
ReplyNo more live link in this comments field
Replynot working
Replyhttps://androidlad.blogspot.com/2016/10/installfailednomatchingabis-when.html
ReplyConversionConversion EmoticonEmoticon