phonegap and android

Following the installation guide to setup my first phonegap-based android project.  The most important thing I wish I had known is that the ruby script that you have to run (droidgap) will not run correctly in cygwin.  I tried (and tried), but once I switched to just a windows command console, it all worked fine.

If I commented out the "makejar" task in the droidgap script, it would work in cygwin.  I think, for whatever reason, invoking ant did from ruby did not work.  Of course I had ant, etc... all setup since that is my development environment.

The following was my final command that got me running:

ruby .\droidgap "C:/usr/local/android/android-sdk-windows" spotmouth com.spotmouth.android "C:/project_workspaces/www" "C:/project_workspaces/android_workspace/spotmouth-android"

 

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options