When i build the app showing an error.
Below my error
(node:2864) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec tion id: 1): CordovaError: Failed to find 'JAVA_HOME' environment variable. Try setting it manually. (node:2864) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre cated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
How can i fix that.
Please help me