• Register
0 votes
1.1k views

Problem :

I am facing an issue with the third party libraries that I have imported to my project.

The issue is that when I try to run the app I get following error message.

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

Please let me know the solution for my issue.

7.5k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

Please make the splits depending on the same list of abis as the external build. It is the Single source of truth as follows:

android {
// ...
defaultConfig {
// ...
    externalNativeBuild {
        cmake {
            cppFlags "-std=c++17"
            abiFilters 'x86', 'armeabi-v7a', 'x86_64'
        }
    }
} //defaultConfig
splits {
    abi {
        enable true
        reset()
        include defaultConfig.externalNativeBuild.getCmake().getAbiFilters().toListString()
        universalApk true
    }
}
} //android

 

OR

After doing some more research I understood that the path where located my libs is right. I just need to add following folders for different architectures:

·         ARM EABI v7a System Image

·         Intel x86 Atom System Image

·         MIPS System Image

·         Google APIs

OR

 

Following solution worked for me when added more types and set universalApk with false to reduce apk size:

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

 

If you follow the solutions then you will be able to resolve your issue.

38.6k points

Related questions

0 votes
1 answer 8 views
8 views
Problem: Didn't find class on path: dexpathlist
asked Jul 24 Sawyer Parviz 166k points
0 votes
1 answer 11 views
11 views
Problem: Ndk not configured download it with sdk manager
asked Jul 5 nila 117k points
0 votes
2 answers 5 views
5 views
Problem: Hardware/libhardware/include/hardware/hardware.h?
asked Jun 30 Mezbah 125k points
0 votes
1 answer 17 views
17 views
Problem: Give me an answer please : Error:ndk not configured. download it with sdk manager.)
asked Jun 24 Chi Omega 166k points
0 votes
1 answer 14 views
14 views
Problem: Is there somebody who can assist : Only position independent executables (pie) are supported?
asked Jun 23 Nahil 122k points
0 votes
1 answer 218 views
218 views
Problem : I am trying to compile an open source android project using gradel but facing following error no toolchains found in the ndk toolchains folder for abi with prefix: mips64el-linux-android
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 11 views
11 views
Problem: Would you have any ideas of how to setup toolchains in the ndk toolchains folder?
asked Mar 30 zayed1 61.8k points
0 votes
1 answer 4 views
4 views
Problem: Install_failed_no_matching_abis kodi.
asked 17 hours ago akhi 121k points
1 vote
1 answer 30 views
30 views
Problem : When I tried to install my app into Android L Preview Intel Atom Virtual Device, it failed with error: INSTALL_FAILED_NO_MATCHING_ABIS Can someone please help fix this, I am tryimg in many time.
asked Mar 29 Sabbir Hossain 14.6k points
0 votes
1 answer 63 views
63 views
Problem: Has anyone had this complication before : Xmlns:app="http://schemas.android.com/apk/res-auto"?
asked May 20 Sawyer Parviz 166k points