I installed cordova and create a new project.
But when I use this command to add android platform:
cordova platform add android
I had the same issue the way I fixed it was I did the following.
ionic platform add android This should fail and give the error your getting. cordova platform rm android && cordova platform add androidThe reason I found it was not fetching was because cordova was looking for Andriod SDK matching the version 7.1.4 but was not able to find it at the preset location normal "andriod/Sdk".