Task failed with an multiple exceptions

4 hours ago 1
ARTICLE AD BOX

Your Android build is failing because the Gradle config is pointing to a macOS Node.js path:

/Users/mylogtech/.nvm/versions/node/v22.4.0/bin/node

But your project is being built on Windows:

D:\LogsafeProjects\logsafe-hr\

So Gradle cannot find Node there.

Fix

Open:

android/gradle.properties

Look for:

NODE_BINARY=/Users/mylogtech/.nvm/versions/node/v22.4.0/bin/node

Replace it with your Windows Node path.

Example:

NODE_BINARY=C:\\Program Files\\nodejs\\node.exe

or:

NODE_BINARY=C:\\Users\\YOUR_USERNAME\\AppData\\Roaming\\nvm\\v22.4.0\\node.exe

(depending on how Node is installed).


Find your actual Node path

Run this in Command Prompt:

where node

Example output:

C:\Program Files\nodejs\node.exe

Use that exact path in gradle.properties.

Read Entire Article