Reputation: 8145
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:
Though I have all of these! I used THIS to install PhoneGap.
Why is this?
Upvotes: 1
Views: 1662
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:
npm install -g phonegap
ANT_HOME
with filepath to User/ System variables %ANT_HOME%/bin
to PATH
under user variables JAVA_HOME
with filepath to User/ System variables (e.g. C:\Program Files\Java\jdk1.7.0_60
) C:\android-sdk-windows\tools
to the PATH
variable C:\android-sdk-windows\platform-tools
to the PATH
variableIf 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
Reputation: 5503
This is a very good resource for the whole process: How to install Phonegap latest for Android
Upvotes: 1
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