Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create aab instead of apk from Jenkins

I want to configure my personal app to be built as an android app bundle rather than apk in Jenkins. How do I configure my Jenkins to build aab and not apk

like image 728
Nari Avatar asked Dec 31 '22 20:12

Nari


1 Answers

You need BundleTool You can use bundletool to create an aab and sign it and even test it. You can install Bundletool just like another CLI utility and execute commands in Jenkins.

Or you can just execute a Gradle task like bundleRelease to generate your release aab.

Here is much detailed on how to do so.

https://developer.android.com/studio/build/building-cmdline#bundletool-build https://developer.android.com/studio/command-line/bundletool

like image 144
vikas kumar Avatar answered Jan 13 '23 13:01

vikas kumar