Published on 10/25/2021
Published by Pratik Takle
How to compile aab (bundle file)
- Since AUG 2020, google changed their uploading policies to upload apk’s.
- Now developers needs to upload bundle file rather than the APKs.
- So here is tutorial to compile bundle file.
Step 1:
- Common to generate aab bundle file
-
12cd android./gradlew bundleRelease
- Above command will create file bundle as app-release.aab at path \appfolder\android\app\build\outputs\bundle\release
Step 2 ( fire-base and Play App Signing ):
- First in fire-base, place sign keys.
- To get sign keys, fire following command in console
-
1yarn sign
- and then you will get keys as
- Copy these keys and paste in your fire-base console
- and additional key you have to get it from – Play App Signing – https://play.google.com/console
- After doing all this things, go to fire-base console.
- download – google-services.json
- search for package_name, get client_id and paste it in your app.js.
- And then compile the bundle as well as Apks.