I installed cordova and create a new project.
But when I use this command to add android platform:
cordova platform add android
I resolved this error using following steps 1) Please add C:\Windows\System32 in envrionment variable paths 2) ensure JDK/bin path is setup under JAVA_HOME and path 3) ensure sdk path is setup under ANDROID_HOME and path I found this solution from here https://dipoletechi.com/blog-post/cordovaerror-failed-to-fetch-platform-cordova-android8-0-0-cordova-error-failed-to-fetch-platform-android/