如何从壁画中排除 arm64-v8a 目录(Facebook 的 android lib)

use*_*202 3 android gradle

在此处输入图片说明

正如你看到的,Fresco 有 arm64-v8a 目录,但我不想要它。我应该在 build.gradle 中写什么

compile('com.facebook.fresco:fresco:0.5.3') {
    exclude group: 'com.android.support'
    exclude group: 'com.nineoldandroids'
    exclude group: 'imagepipeline/jni/arm64-v8a'
}
Run Code Online (Sandbox Code Playgroud)

Vik*_*rma 5

在您的应用程序的 build.gradle 文件中写入以下代码

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

        packagingOptions {
            exclude "lib/arm64-v8a/mysofile.so"
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

用你的 .so 文件替换 mysofile.so