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

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.

9 7 4
38,600 points

Related questions

0 votes
1 answer 122 views
122 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 5 views
5 views
Problem: xmlns:android="http://schemas.android.com/apk/res/android"
asked 2 days ago charles mathews 3.9k points
0 votes
1 answer 15 views
15 views
Problem android.content.res.resources$notfoundexception: string resource id #0x1
asked Feb 9 charles mathews 3.9k points
0 votes
1 answer 5 views
5 views
Problem: all firebase libraries must be either above or below 14.0.0
asked Feb 18 Ethan ross 1.9k points
0 votes
2 answers 70 views
70 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, 2020 alecxe 7.5k points
0 votes
1 answer 26 views
26 views
Problem : failure [install_failed_user_restricted: install canceled by user]
asked Feb 13 Shovo210 3.9k points
0 votes
1 answer 77 views
77 views
I'm trying to render html files, but I'm having an issue. This works. app.get('/randomlink', function(req, res) { res.sendFile( __dirname + "/views/" + "test2.html" ); }); But I don't want to copy and paste dirname thingy over and over, so I tried this ... // test2.html exists in the views folder }); Here's the error. path must be absolute or specify root to res.sendFile Please help me solve this.
asked Jan 23 khaled 280 points
0 votes
1 answer 5 views
5 views
Problem : error: Failed to load the native TensorFlow runtime
asked Feb 25 Shovo210 3.9k points
0 votes
1 answer 5 views
5 views
Problem : Failed to instantiate one or more classes android studio
asked Feb 25 Shovo210 3.9k points
0 votes
1 answer 8 views
8 views
Problem : failed to find target with hash string 'android-26'
asked Feb 24 Shovo210 3.9k points