I\'m trying to build a Cordova Android project using the most recent tools. I followed the instructions here:
$ cordova create myApp com.myCompany.myApp myAp
I tried many but it didnt work finally ,
sudo chmod -R a+rwx /Library/Java/JavaVirtualMachines *
sudo chmod -R a+rwx *
sudo chmod 777 {your-gradle-path}
It immediately started working