Cordova - Error - Cordova Platform add android

Asked

Viewed 505 times

1

I did the installation of Cordova, I installed the android SDK, but when I put the command Cordova Platform add android it gives the following error.

http://prntscr.com/49brfk

I saw on Cordova’s Docs that I need to add something to 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.

someone has had this problem?

  • Yes, I’ve had this problem. Check if you have: JAVA_HOME set in your PATH, if you actually installed Nodejs - (for NPM access). Also check that you have the Android SDK in your PATH and that the emulator is functional. I advise you to watch the videos in Learn: http://learn.ionicframework.com/videos/windows-android/ You have here, step by step, how to install and overcome the most common errors!

  • I believe this answer will help you http://answall.com/a/19024/5536. To use Phonegap you need to have in your path the path to Java, Nodejs and Apacheant and have configured the android SDK. Follow the instructions of Getting Started from Phonegap

1 answer

1


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

Then try again to add the platform in Cordova.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.