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

前端 未结 11 1483
灰色年华
灰色年华 2020-11-29 00:38

I have an issue with third party libraries that are imported to my project.

I read quite a lot of articles about that but do not get any information how properly han

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 01:08

    Make the splits depend on the same list of abis as the external build. Single source of truth.

    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
    

提交回复
热议问题