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.
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]
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 } }
. . .
13 2018 , universalApk false, apk
splits { abi { enable true reset() include 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'arm64-v8a' universalApk false } }
, :
x86_64 (ABI)
x86_64
.
, () .
, - .
Nexus 5X API 26 x86 ( ) - , AAR. . , , / , AVD, , . . / , abi "x86", "armeabi-v7a" build.gradle file , :)
: Driss Bounouar . x86, AAR HAXM .
- , , . :
ARM EABI v7a
Intel x86 Atom
MIPS
API Google
, build.gradle Android block, defaultConfig. , apk .
build.gradle
Android block
defaultConfig
android{ ... defaultConfig{ ... //Add this ndk block of code to your build.gradle ndk { abiFilters 'armeabi-v7a', 'x86', 'armeabi' } } }
, cmake build, , android {} block:
externalNativeBuild { cmake { cppFlags "-std=c++14" abiFilters "arm64-v8a", "x86", "armeabi-v7a", "x86_64" } }