After you build your Android App Bundle, you should test how Google Play
uses it to generate APKs and how those APKs behave when deployed to a device.
There are two ways you should consider testing your app bundle: locally using the
bundletool command line tool and through Google Play by
uploading your bundle to the Play Console
and using a test track. This page explains how to use bundletool to test your
app bundle locally.
Installation Steps:
- Open Terminal using Spotlight search by pressing
<command+space>.
Type terminal and hitEnterkey. - Now, run
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” < /dev/null 2> /dev/null - Install bundletool using brew
brew install bundletool
bundletool is ready to use now!
bundletool is the underlying tool that Gradle, Android Studio, and Google
Play use to build an Android App Bundle or convert an app bundle into the
various APKs that are deployed to devices. bundletool is also available to
you as a command line tool, so you can recreate, inspect, and verify Google
Play’s server-side build of your app’s APKs.