This is something weird,
first I set ANDROID_HOME in environment variable, and phonegap CLI was working properly, after that I installed android studio. It asked me to avoid ANDROID HOME path with spaces(I had space in path like: D:\Backup data\Android\sdk
), then I removed space and updated the environment variables, both ANDROID_HOME AND PATH.
Now When I tried to run phonegap build android I get
The SDK Directory D:\Backup data\Android\sdk does not exist.
I tried setting it through cmd prompt as given here.
But did not work either. Also tried restarting the system and setting the variable in system variable section of environment variables.
Please guide me on this.
The new path is D:\Backupdata\Android\sdk, Backupdata is without space.