Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install bundletool?

Although the docs mentioned

If you haven't already done so, download bundletool from the GitHub repository.

However, the repo contains only a jar file. How do I install it so that I can run with the 'bundletool' command just like the docs' example?

like image 466
Vincent Paing Avatar asked Nov 14 '18 11:11

Vincent Paing


People also ask

How do I run Bundletool?

To deploy your app from an APK set, use the install-apks command and specify the path of the APK set using the --apks= /path/to/apks flag, as shown below. (If you have multiple devices connected, specify a target device by adding the --device-id= serial-id flag.)

How do I install bundle apps?

Currently, APKMirror lets you install app bundles using its own installer called APKMirror installer. You can install it directly from their website by clicking here or download it from the Google Play Store.

How do I install AAB files?

aab files are directly uploaded to Google Play, and you can't directly install it using the native package installer, you won't easily find . aab files of your favorite apps on the internet. If you are a developer, you can use Google's bundletool for generating APKs from an Android App Bundle.


2 Answers

If you have brew installed simply run brew install bundletool and the alias will be set up for you as well. It did the trick for me.

like image 140
flarkmarup Avatar answered Nov 14 '22 00:11

flarkmarup


You can create an alias (or doskey on Windows), e.g.

alias bundletool='java -jar bundletool-all.jar'

like image 34
Pierre Avatar answered Nov 14 '22 00:11

Pierre