0

I've been following tutorials to set up a PhoneGap project (Android) on Eclipse, I'm fairly new to JS frameworks so I'm setting it up to start learning how to use them. In the tutorial (and any other I watch), they use an older version of PhoneGap that includes a .jar file and that isn't present with the latest version. I'm guessing it will still be easy to do but I'm just missing something obvious.

Is there another way to set it up now? Or do I simply not need this file? Thank you for any help.

asked Mar 21, 2014 at 18:27

1 Answer 1

1

The Documentation specifically shows how to open up the project in Eclipse.

Use the cordova utility to set up a new project, as described in The Cordova The Command-Line Interface. For example, in a source-code directory:

$ cordova create hello com.example.hello "HelloWorld"
$ cd hello
$ cordova platform add android
$ cordova build
  • Launch the Eclipse Application.
  • Select New Project menu item.
  • Choose Android Project from Existing Code from the resulting dialog box, and press Next:
  • Navigate to hello, or whichever directory you created for the project, then to the platforms/android subdirectory.
  • Make sure both hello and hello-CordovaLib projects are selected to be imported. The hello-CordovaLib project is needed as of Cordova 3.3.0 because Cordova is now used as an Android Library instead of a .jar file
  • Press Finish.

This is all in the documentation.

answered Mar 21, 2014 at 18:52
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.