Build multiple APKs
Overview
To reduce APK size, generate one APK per CPU architecture (ABI).
For background, see Android’s documentation on APK splits: https://developer.android.com/build/configure-apk-splits
NFC Wallet SDK supports these ABIs:
armeabi-v7a(32-bit)arm64-v8a(64-bit)
When you enable ABI splits, Gradle generates one APK per ABI for your digital wallet application.
The following figure illustrates the building of APK for 32-bit and 64-bit architectures.

Size consideration
The SDK AAR contains native .so libraries for all supported ABIs.
Universal AAR size = size(
armeabi-v7a.so) + size(arm64-v8a.so)With ABI splits, each generated APK contains only one
.so32-bit APK size ≈ size(
armeabi-v7a.so) + other application components
Configure your build for multiple APKs
In your app module build file:
Enable ABI splits so Gradle generates one APK per ABI.
Expect APK names like
appname-abi-buildType.apk(for example,mpa-arm64-v8a-debug.apk).If you publish multiple APKs, assign a unique
versionCodeper APK before uploading to Google Play. See: https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions
Last updated
Was this helpful?