Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android build fails with error - Process 'command 'node'' finished with non-zero exit value 1

While running the react-native android app using android studio I am getting this error:

Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'node'' finished with non-zero exit value 1

I tried cleaning up the android project in android studio and also tried commands like:

gradlew --stop

to stop the already running daemons but nothing worked.

like image 360
Kumar Parth Avatar asked Jun 06 '26 07:06

Kumar Parth


1 Answers

Update the Java Runtime for Gradle in Android Studio Settings. This worked for me. enter image description here

like image 90
atmaram Avatar answered Jun 08 '26 23:06

atmaram