Error cordova run android

I am having the following error when I try to run on android, physical device macOS system

(node:614) UnhandledPromiseRejectionWarning: Unhandled promise 
rejection (rejection id: 1): 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

(node:614) [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.

Install Gradle from gradle.org/install
Make sure that ionic cordova requirements does recognize it and is happy.

at the root of the project ?

Gradle is a global install, so it doesn’t matter where you install it.
The ionic cordova requirements command will only work in the project, yes.

I have the following error -> /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/

That is not really an error but a path and is missing all context. When do you get that? What else do you get?