cordova is not adding android platform

171 Views Asked by At

I am using windows 10. I have sucessfully installed android studio and java. I am using latest android studio version 2.3.3. my cordova version is 7.0.1 nodejs version is 7.7.0 npm version is 4.1.2 I am using android api level is 25

when i am using cordova platform add android it shows the error

Error: Failed to fetch platform cordova-android@~6.2.2 Probably this is either a connection problem, or platform spec is incorrect. Check your connection and platform name/version/URL. Error: cmd: Command failed with exit code ENOENT

How to add the android platform .

Please solve my issue.

1

There are 1 best solutions below

0
Joe On BEST ANSWER

My enviromental variable path is missing "C:\Windows\System32". After adding the path. It have sucessfully running. And also i have installed git on my system.