Reputation: 165
I have written one c file native code for an Android application but when I build the apk and when I want to release that apk, it only supports four CPU's architecture.
Please tell me how to resolve that problem? I want to make the apk which supports all types of CPU architectures.
Upvotes: 2
Views: 608
Reputation: 10499
This should be happening automatically if you're using the canonical build process (i.e. Android Studio with externalNativeBuild
). If it isn't, update your NDK/SDK/gradle plugin.
If that still doesn't do it, you can try explicitly listing all the ABIs you want to support: Add abiFilters to gradle properties
Also note that you really don't want a single APK with libraries for all ABIs, as that would be a very large APK with mostly unused stuff in it. What you really want are app bundles which will automatically include only the libraries for the device the user is installing the app too.
Upvotes: 2