When I run this command on Windows 8:
c:\firstapp> cordova platform add android
I get the following error:
Error:ANDROID_HOME is set to a non-existant path c://android/android-sdk-windows
Can anyone tell me what's wrong in it and how fix it?
When I run this command on Windows 8:
c:\firstapp> cordova platform add android
I get the following error:
Error:ANDROID_HOME is set to a non-existant path c://android/android-sdk-windows
Can anyone tell me what's wrong in it and how fix it?
You need to set/add ANDROID_HOME environment variable to where your Android-SDK lies (the directory which includes platform-tools and tools directory). And extend the PATH environment variable to include those two directories as well.
In case you installed the sdk to c:\dev\android\sdk, then ANDROID_HOME must have exactly this path as value.
When editing the PATH environment variable, you must add (append) ;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools to it.
Here you can read how to set those variable on a windows system.