Omar
Omar

Reputation: 8145

PhoneGap installation fails with "Missing one of these" error message

I'm trying to install the latest PhoneGap version to my Eclipse project, but I'm having an issue, here is the error message I'm getting:

enter image description here

Though I have all of these! I used THIS to install PhoneGap.
Why is this?

Upvotes: 1

Views: 1662

Answers (3)

Lewis
Lewis

Reputation: 622

Heres a start to finish guide I've knocked together, you can run through the steps and see which you have/ haven't done:

  • Download/ Install Node.JS
  • Download/ Install GIT for windows
  • Download/ Install Phonegap by opening NODE.JS command line and typing: npm install -g phonegap
  • Download/ Install Apache 2.4
  • Download/ Install Apache Ant
  • Add Variable name: ANT_HOME with filepath to User/ System variables
  • Add %ANT_HOME%/bin to PATH under user variables
  • Download/ Install JRE ( select applicable version number (if in doubt then most recent)
  • Download/ Install JDK (Select applicable version number (if in doubt then most recent)
  • Add Variable name: JAVA_HOME with filepath to User/ System variables (e.g. C:\Program Files\Java\jdk1.7.0_60 )
  • Add %JAVA_HOME%/bin to PATH under user variables
  • Download / Extract Android SDK ( select "download for other platforms" and select version to avoid downloading their bundle
  • Add Android SDK Tools folder eg: C:\android-sdk-windows\tools to the PATH variable
  • Add Android SDK Platform tools eg: C:\android-sdk-windows\platform-tools to the PATH variable

If all the above is done then you're ready to begin the user set up, you'll need to create a new project with Phonegap and create a new emulator through the android Virtual Device Manager.

Upvotes: 1

Swar
Swar

Reputation: 5503

This is a very good resource for the whole process: How to install Phonegap latest for Android

Upvotes: 1

Simon MacDonald
Simon MacDonald

Reputation: 23273

Yeah, the getting started guide should be more explicit on the other bits you need to setup in order to get the create command to work correctly. I've recently pushed a change to the docs but it hasn't shown up on the docs.phonegap.com site.

What you will need to do is open a command prompt and type:

java

If that program can not be found in your PATH then you will need to add the $JAVA_HOME\bin directory to the PATH environment variable.

Then type:

android

If that program can not be found in your PATH then you will need to add $ANDROID_HOME\tools and $ANDROID_HOME\platform_tools to the PATH environment variable.

Then type:

ant

If that program can not be found in your PATH then you will need to add $ANT_HOME\bin to the PATH environment variable.

Once all those programs can be found in the PATH then create should work for you. Let me know if this helps as I need to make the docs better.

Upvotes: 1

Related Questions