• Register
0 votes
526 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.

6 5 3
7,540 points

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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 111 views
111 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
2 answers 59 views
59 views
Problem : After updating my android studio to android studio 2.3 I facing below error message. I know it is giving me just the hint as my app is running normally but it looks really strange. “All com.android.support libraries must use the exact same version ... 1, 24.0.0. Examples include com.android.support:animated-vector-drawable:25.1.1 and com.android.support:mediarouter-v7:24.0.0”
asked Jan 9 alecxe 7.5k points
0 votes
1 answer 27 views
27 views
Problem: I have the latest version of android studio (3.0) along with the latest build tools (27) and also have the similar API level. But my layout does not get rendered in my design tab and because of this it is causing the lot of trouble especially while ... workable fix for the above problem. I have already spent more than three days on this issue. Is there any work around for this problem?
asked Jul 28 Raphael Pacheco 4.9k points