Gradle: not installed

运行  cordova requirements   出现

Gradle: not installed 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

一、安装 gradle  方法一

二、安装gradle 方法二

gradle 之安装,大坑

找到Android Studio下的gradle,配置环境变量export GRADLE_HOME=到此目录下,无效

去官网下载gradle,配置环境变量export GRADLE_HOME=到此目录下,也无效

最后运行 brew update && brew install gradle  ,成功