Apr 2, 2010

Quick Tip: Phonegap on linux from the command line

I recently got a new laptop (Vostro V13 for anyone wondering) and need to re-setup all my stuff to work. Ruby and most tools weren't a problem but getting phonegap going on ubuntu was a bit of a challenge. One thing I remember that tripped me up last time I went down this path was a weird error I got when trying to run the command to launch my app:

$ cd framework && ant jar

/home/vince/src/phonegap/android/framework/build.xml:49: taskdef class com.android.ant.SetupTask cannot be found

I remember spending a few hours on this last time, but this time around I remembered the solution is fairly easy. Just pop open your local.properties file in the frameworks directory and make sure the path to the SDK is correct. After that you should be good to go. Phew!

      [jar] Building jar: /home/vince/src/phonegap/android/framework/phonegap.jar

Total time: 3 seconds


  1. the vostro looks nice. thanks for the phonegap tip

  2. thanks for the help, i did have an issue that i didn't have a local.properties file so just create one and place


    of course change to the correct path :)