android64-bitnativendk-buildlibs

Apk does not include arm64-v8a folder in libs but my project has .so file under jnilibs/arm64-v8a/xyz.so


My project require native library and I have generated .so files for 'x86', 'x86_64', 'armeabi-v7a', 'arm64_v8a' architectures.

In app gradle also I have defined ndk support for following ndk.abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64_v8a'

But when I generate an apk using android studio and analyze it using "Analyze apk" tool, it only shows 3 folders in lib directory x86, x86_64, and armeabi-v7a

It does not create "arm64_v8a" folder to fully support 64-bit devices.


Solution

  • Reading carefully what you wrote I suspect the root of the problem might be found in the app level build.gradle file of your project: