Advertisement
Beginner .NET MAUI, Publishing & Deployment

What is the difference between an APK and an AAB for Android?

Short answer

An APK is a directly installable package. An Android App Bundle (AAB) is a publishing format uploaded to Google Play, which generates optimized per-device APKs (split by density, ABI, language), reducing download size.

Save .NET MAUI mock interview
Advertisement
AModel answer
An APK is a directly installable package. An Android App Bundle (AAB) is a publishing format uploaded to Google Play, which generates optimized per-device APKs (split by density, ABI, language), reducing download size. Google Play requires AAB for new apps; use APK for sideloading or internal testing.
dotnet publish -f net8.0-android -c Release \
    -p:AndroidPackageFormat=aab
Real-world example
A team ships an AAB to Play for smaller user downloads but keeps an APK for QA sideloading.
Likely follow-ups
  • Why does Play prefer AAB? | When do you still use an APK?
Related topics