android - How to import only selected native library ABIs from AAR? -


i have bit unusual problem - android app contains native libs , build native libs armeabi-v7a , x86. however, need integrate third party library app contains native libraries (third party library crashlytics included via maven build.gradle.). problem third party library's aar provides arhitectures (armeabi, arm64-v8a, armeabi-v7a, mips, mips64, x86 , x86_64) , app supports armeabi-v7a , x86 (arm64-v8a planned near future), when final apk built contains 3rd party library's abi's , x86 , armeabi-v7a abi's of native code. causes app crash when launched on arm64 device galaxy s6.

my question is: possible include selected abi's 3rd party aar?

please note aware of apk splits, solves problem partially, i.e. works if distribute app via play store. although play store supports beta test distribution, propagation of updated apk rather slow, prior pushing update app's playstore beta channel, push update via crashlytics' beta distribution system, faster. problem crashlytics' distibution system not support apk splits (or wrong?). therefore, need build "universal" apk contain selected abis. how achieve that?

although satisfied crashlytics'-specific answers (like example, how distribute apk splits via beta channel), more satisfied solution building "universal" apk contains selected abis, because @ our company provide sdks our clients aar archives contain supported architectures , instruct them how handle case when integrate our sdk other sdks have different abi's supported.

i using latest stable android studio (1.2.1.1), gradle 2.4 , android gradle plugin version 1.2.3.

packagingoptions {     exclude 'lib/arm64-v8a/libcrashlytics-envelope.so'     exclude 'lib/arm64-v8a/libcrashlytics.so'     exclude 'lib/armeabi/libcrashlytics-envelope.so'     exclude 'lib/armeabi/libcrashlytics.so'     exclude 'lib/mips64/libcrashlytics-envelope.so'     exclude 'lib/mips64/libcrashlytics.so'     exclude 'lib/mips/libcrashlytics-envelope.so'     exclude 'lib/mips/libcrashlytics.so'     exclude 'lib/x86_64/libcrashlytics-envelope.so'     exclude 'lib/x86_64/libcrashlytics.so'     } 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -