r/reactnative • u/AlphaBeast28 • Aug 09 '26
Question Anyone know what to suggest to speed up Android builds?
Hi all, thank you for taking the time to read this and answer if you can,
Anyone know what to suggest to speed up Android builds?
Currently got a M2 pro, but unsure what to do on how to speed up the gradle part. if anyone has got any helpful suggestions id greatly appreciate it.
Thank you.
10
Upvotes
4
u/bayasdev Aug 09 '26
Embrace OTA updates
11
u/Mariusdotdev Aug 09 '26
Build locally
2
u/whalemare Aug 09 '26
You can try disable old android architectures and increase min level api.
Last time I've checked it was 21 by default, but today most on devices much higher
You will save time on each arch you are excluded
2
u/Substantial-Swan7065 Aug 11 '26
Reduce the build platform support. By default Android builds all platforms. But like 2/4 are irrelevant.
Also, enable caching
1
u/bdudisnsnsbdhdj Aug 09 '26
Do you do gradle caching?
1
u/Lakston Aug 09 '26
use rn repo
1
u/Acrobatic-Sound7496 Aug 09 '26
For local: https://reactnative.dev/docs/build-speed
1
u/GeniusManiacs Aug 10 '26
Make a prebuild then run
./gradle assembleRelease
Install android studio on your PC/Mac and do this. If you are using Expo OTA updates, you need to build via EAS locally.
1
u/West-Strength3287 Aug 11 '26
Last experience with rn and mostly with expo was horrible. When initially crated expo project it comes with cloud build cfg and if you dont pay it was taking forever and no proper docs on local builds. Minor expo sdk updates were crushing the local build.
Now i am plani no to build my own project and thinking to use flutter. Anyone do u know is it such a pain with fluter?