if you’re on os x try add path to /etc/paths
this works for me
or you can append gradle bin to $PATH in ~/.zshrc ~/.bashrc etc
my os is windows, i don’t know what is the problem
maybe try add here?
what happend after you run gradle in CMD?
if not found try append gradle bin folder to Path