This problem I solved with the following detail, somehow the android SDK manage installed all the dependencies and necessary files, but forget this `templates`
files where is found templates> gradle> wrapper. This set of files is missing.
Path in mac
/Users/giogio/Library/Android/sdk/tools/templates