I got problem when i want to add an android platform to my phoneGap application. I got this message in my CLI when i execute the command cordova platform add android :
For those who have encountered this problem I add something extra that can be helpful, in my case had all the variables properly configured and this was still unable to add android platform and I did was disable my avast antivirus and puff! everything flowed smoothly, what was happening was that the antivirus was blocking the creation of the platform.
Also important for me was to restart the pc. ;)
Regards.