AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

IS there any way to build with out x86 and x86_64

Open sairajkishore opened this issue 9 years ago • 5 comments

IS there any way to build with out x86 and x86_64 as Apk size is increasing due to x86 and x86_64 .so files, which are only used for emulator purpose.

sairajkishore avatar Jul 26 '17 20:07 sairajkishore

Look in closed section lots of explanations on how to split the files to make a smaller apk

1stmetro avatar Jul 26 '17 20:07 1stmetro

There are many smartphones and tablets with x86 and x86_64 architecture... Edit: maybe not many, but there are such devices

barteksc avatar Jul 26 '17 21:07 barteksc

@barteksc Basically X86 is for Emulator, so i want to avoid X86.so files for production build. is there any way to remove X86 and X86_64 so files so that it reduces my apk size.

sairajkishore avatar Jul 26 '17 22:07 sairajkishore

As I said, it is not only for emulator, there are devices with this architecture

barteksc avatar Jul 26 '17 22:07 barteksc

@sairajkishore you can use

android { defaultConfig { ndk { abiFilters "armeabi-v7a", "arm64-v8a" } }

to only include arm libraries in your apk. But barteksc is right, x86 is not only for the emulator.

MaciejCzekanski avatar Jul 27 '17 07:07 MaciejCzekanski