How Can I Exclude The Arm64-v8a Dir From The Fresco(android Lib Of Facebook)
Just as you see,the Fresco has arm64-v8a dir,but I do not want it.What should I write in build.gradle compile('com.facebook.fresco:fresco:0.5.3') { exclude group: 'com.android
Solution 1:
Write below code in build.gradle file of your app
android {
...
defaultConfig {
...
ndk {
abiFilters "armeabi-v7a", "x86","armeabi"
}
packagingOptions {
exclude "lib/arm64-v8a/mysofile.so"
}
}
}
Replace mysofile.so by your .so file
Solution 2:
this may help: Shipping Multiple APKs
If your application is not used by devices running Android 2.3 (Gingerbread), you will not need the armeabi flavor.
Android Studio / Gradle# Edit your build.gradle file as follows:
android { // rest of your app's logic splits { abi { enable truereset() include 'x86', 'x86_64', 'arm64-v8a', 'armeabi-v7a', 'armeabi' universalApk false } } }
Solution 3:
You need to add entry in packagingOptions under android/app/build.gradle file android section as shown below to exclude the particular file or entire folder from apk lib folder
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false// If true, also generate a universal APKinclude"armeabi-v7a", "x86"
packagingOptions({
exclude 'lib/arm64-v8a/*'//instead of * you can specify perticualr so file name also
exclude 'lib/x86_64/*'
})
}
}
Post a Comment for "How Can I Exclude The Arm64-v8a Dir From The Fresco(android Lib Of Facebook)"