Cordova - Error - Cordova Platform add android

1

I installed the cordova, I installed the android SDK, but by the time I boot the Cordova Platform add android command it gives the following error.

link

I saw in the docs in Cordova that I need to add something to the PATH

  

You may need to add the npm directory to your PATH in order to invoke globally installed npm modules. On Windows, npm can usually be found at C: \ Users \ username \ AppData \ Roaming \ npm.

Has anyone had this problem yet?

    
asked by anonymous 04.08.2014 / 06:24

1 answer

1

Hello, it looks like you have to run the Android command (cmd) if you have already installed the Android SDK and set the ANDROID_HOME environment variable. In the window that appears you have to download build tools and an API for example: API Level 20.

Then try again to add the platform in Cordova.

    
23.09.2014 / 19:54