It's been so long since I develop a mobile app in react native, when I'm developing before, I usually generate a release apk and send it to my clients so that they can test it and have experienced it, but now when I build a release in react native, it returns a .aab
instead of .apk
, how can I send my application to the clients when I only get .aab
format on my project?
The generated AAB can be found under android/app/build/outputs/bundle/release/app-release. aab , and is ready to be uploaded to Google Play. In order for Google Play to accept AAB format the App Signing by Google Play needs to be configured for your application on the Google Play Console.
It using for different android devices installation by google play store. that's why you can use apk build for manual installation.
You must use the below command for the testing build.
$ cd android
$ ./gradlew assembleRelease
As mentioned repeatedly in many places .aab file is efficient. But we need .apk for regular task (except PlayStore).
So:-
$ npx react-native run-android
for debugging.$ npx react-native run-android --variant=release
Link, to create release version, which is created at android/app/build/outputs/bundle/release/app.apkJust for the information. If you upload the AAB to Google Play instead of the APK, it will lead to smaller download sizes. AAB lets Google Play create different APKs to different devices, based on the device screen density, language, and CPU architecture. So, if you're able to create AAB's, use them over APK's.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With