android 模拟器INSTALL_FAILED-NO_MATCHING_ABIS:Failed to extract native libraries,res=-113

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_25412055/article/details/78758872

一般在android模拟器上运行的时候会遇到这个问题,解决方法

1、增加缺少的so文件

    如果是缺少x86的so文件,则把x86的so文件加入即可,其他也一样。

2、使用arm架构的模拟器

    在创建模拟器的时候使用arm的cpu架构

3、在app的gralde中加入

android {
    ...
    defaultConfig {
        ...
        ndk {
            abiFilters 'armeabi-v7a', 'armeabi', 'x86'
        }
    }
    ...

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

猜你喜欢

转载自blog.csdn.net/qq_25412055/article/details/78758872