Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Build stuck at :app:bundleReleaseJsAndAssets

I build an app with react-native, and I'm trying to build a release apk with the command

./gradlew assembleRelease

but the build gets stuck when it reaches :app:bundleReleaseJsAndAssets

example:

<=------------> 12% EXECUTING [29m 42s]
IDLE
IDLE
:app:bundleReleaseJsAndAssets
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE
IDLE

if I build a debug version using ./gradlew assembleDebug, the build completes within a minute

like image 380
Lucas Gardini Dias Avatar asked Jan 30 '26 08:01

Lucas Gardini Dias


1 Answers

I just fixed it on my machine. It was because of "Waiting for Watchman".

I fixed it by doing the following:

watchman shutdown-server
watchman watch-del-all
watchman --logfile=[Absolute path to another file]
like image 84
Saneet Avatar answered Jan 31 '26 21:01

Saneet