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

I have a problem with third-party libraries imported into my project.

I have read quite a few articles about this, but have not received any information on how to handle this correctly.

I put my .so classes in a folder.

enter image description here

The problem is that I try to run the application that I get

[INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
+35
source share
7 answers

July 25, 2019:

I ran into this problem in Android Studio 3.0.1 :

After checking a lot of posts, here is a fix that works:

build.gradle Android :

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

. . .

+66

13 2018 , universalApk false, apk

splits {
    abi {
        enable true
        reset()
        include 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'arm64-v8a'
        universalApk false
    }
}
+10

, :

x86_64 (ABI)

x86_64

.

, () .

, - .

+4

Nexus 5X API 26 x86 ( ) - , AAR. . , , / , AVD, , . . / , abi "x86", "armeabi-v7a" build.gradle file , :)

: Driss Bounouar . x86, AAR HAXM .

+3

- , , . :

  • ARM EABI v7a

  • Intel x86 Atom

  • MIPS

  • API Google

+2

, build.gradle Android block, defaultConfig. , apk .

android{
    ...
    defaultConfig{
        ...
        //Add this ndk block of code to your build.gradle
        ndk {
            abiFilters 'armeabi-v7a', 'x86', 'armeabi'
        }
    }
}
+2

, cmake build, , android {} block:

 externalNativeBuild {
            cmake {
                cppFlags "-std=c++14"
                abiFilters "arm64-v8a", "x86", "armeabi-v7a", "x86_64"
            }
        }
+1

All Articles