Cordova build android --release

Getting following error while releasing android app
i think the issue related to android studio
plz any one can check and solve the issue

C:\Users\Owner\Desktop\counter\counterapp>ionic cordova build android --release
Running app-scripts build: --platform android --target cordova
[04:52:22] build dev started …
[04:52:22] clean started …
[04:52:22] clean finished in 16 ms
[04:52:22] copy started …
[04:52:23] deeplinks started …
[04:52:23] deeplinks finished in 880 ms
[04:52:23] transpile started …
[04:52:42] transpile finished in 18.47 s
[04:52:42] preprocess started …
[04:52:42] preprocess finished in 2 ms
[04:52:42] webpack started …
[04:52:42] copy finished in 20.04 s
[04:53:06] webpack finished in 23.62 s
[04:53:06] sass started …
Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[04:53:19] sass finished in 13.20 s
[04:53:19] postprocess started …
[04:53:19] postprocess finished in 36 ms
[04:53:19] lint started …
[04:53:19] build dev finished in 56.69 s

cordova build android --release
Android Studio project detected

(node:4220) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually.
Detected ‘android’ command at C:\SocketeQ\windowsandroid_root\system\bin but no ‘tools’ directory found near.
Try reinstall Android SDK or update your PATH to include valid path to SDK\tools directory.
(node:4220) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

[04:53:35] lint finished in 16.24 s