I installed cordova and create a new project.
But when I use this command to add android platform:
cordova platform add android
I faced same issue and I fixed by performing following steps.
Please add C:\Windows\System32 in envrionment variable paths
C:\Windows\System32
Ensure jdk/bin path is setup under JAVA_HOME and path
jdk/bin
JAVA_HOME
Ensure SDK path is setup under ANDROID_HOME and path
ANDROID_HOME