Running a project on ionic in Mac OS

I tried to run ionic project in Mac via visual studio code. I installed android studio too for support for android. I set the environment variables also. when I tried to run android. I got this error.

Android Studio project detected

[18:16:23] lint finished in 20.64 s
ANDROID_HOME=/Users/bvmac001/Library/Android/sdk/
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
studio
(node:2368) UnhandledPromiseRejectionWarning: CordovaError: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
at Object.module.exports.check_gradle (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/lib/check_reqs.js:150:18)
at StudioBuilder.prepEnv (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/lib/builders/StudioBuilder.js:216:23)
at Api.module.exports.run (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/lib/build.js:154:20)
at /Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/Api.js:342:43
at _fulfilled (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/node_modules/q/q.js:816:13)
at /Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/node_modules/q/q.js:624:44
at runSingle (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/node_modules/q/q.js:137:13)
at flush (/Users/bvmac001/Documents/Temp/setup/platforms/android/cordova/node_modules/q/q.js:125:13)
(node:2368) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2368) [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 exitcode.

Please help me out from this, thanks in advance

Install Gradle Gradle | Installation