1

I've read this: Cordova and setting Android using command line and that How to add android to cordova platform? PATH error? and generally speaking whole documentation. I've added both 'platform-tool' and 'tool' paths, installed android 4.4 and I'm still getting the error from the tittle when I'm trying cordova platform add android to my current project ( in cmd and in netbeans ).

The only thing I haven't done is adding java and ant to path. I was trying with ;%JAVA_HOME%\bin;%ANT_HOME%\bin but still those commands aren't recognizable.

What else can I do?

EDIT:

I've added java and ant to PATH. This is what I get in cmd:

C:\xampp\htdocs\mobile_maps>cordova platform add android
[Error: The command `android` failed. Make sure you have the latest Android SDK
installed, and the `android` command (inside the tools/ folder) added to your pa
th. Output: ]

Second EDIT:

i also get 'xcopy' is not recognized as an internal or external command even though I've added %SystemRoot%\System32; %SystemRoot%; %SystemRoot%\System32\wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0 . I really don't know what else I can do..

Community
  • 1
  • 1
mmmm
  • 3,768
  • 9
  • 36
  • 63

1 Answers1

0

usually this happens when: 1. Java is not installed 2. Java is not exported (no JAVA_HOME env variable) or paths are wrong 3. only 64bit version of Java is installed

to fix install 32bit support on your system.

and (as comments below) relog in Windows to environment changes take effect.

robotoaster
  • 3,082
  • 1
  • 24
  • 23