Reputation: 91
When I execute my android project in android 8.0 device.I get the error "INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113"
But when I execute in android 7.0 is normal.
After I check,I find
compile files('libs/gson-2.2.2.jar')
compile files('libs/signalr-client-sdk-android.jar')
compile files('libs/signalr-client-sdk.jar')
cause the error.
Like this image. error image 2
Is it because the signalr jar version too old?
note:I do not use AVD. I use real device.
Upvotes: 3
Views: 12610
Reputation: 388
First of all, substitute the official files of SignalR SDK with the files that you can find at this link: https://github.com/eak65/FixedSignalRJar
When you do that, edit the "build.gradle" file of your application, adding the following code in the "android" block, after the "buildTypes" block:
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a'
universalApk true
}
}
packagingOptions {
exclude 'lib/getLibs.ps1'
exclude 'lib/getLibs.sh'
exclude 'lib/gson-2.2.2.jar'
}
The above solution helped me after a lot of struggling! I hope it helps you too!
Upvotes: 21