I installed cordova and create a new project.
But when I use this command to add android platform:
cordova platform add android
you can check the android version provided by cordova by typing cordova platform ls
inside projectname/cordova folder. I refered from below url https://cordova.apache.org/docs/en/latest/guide/platforms/android/.
(For me .cordova/lib folder was empty).
Then add that platform from inside project's cordova folder by executing cordova platform add android@5.1.1
(in my case, solved the issue).