INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113 device

11,860

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!

Share:
11,860
Xin-Yu Hou
Author by

Xin-Yu Hou

Updated on June 28, 2022

Comments

  • Xin-Yu Hou
    Xin-Yu Hou 11 months

    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"

    error image

    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.

  • Eus
    Eus about 5 years
    I'm happy to have been of help!
  • pr0gg3r
    pr0gg3r about 5 years
    Hey man, thank you so much! After several hours of investigations, wtfs and after a lot of struggling this was the key point. Btw, it works for me without the fixed SignalR jars.
  • Eus
    Eus about 5 years
    @pr0gg3r thank you for your note. In my case the use of fixed JARs was still essential. Happy to have given you a hand!
  • Varun Barve
    Varun Barve over 4 years
    Thank you so much for this. But can you also explain the problem we all were facing ?!
  • Muhammad Naderi
    Muhammad Naderi over 4 years
    trust Microsoft, they said ... it will be fun they said!
  • IronBlossom
    IronBlossom over 4 years
    signalr-client-sdk.jar is the main problem, not signalr-client-sdk-android.jar