Dreamweaver 5.5 update to latest phonegap version (Android) (updated for version 1.0)

For Android, the complex process of installing, configuring, and verifying the Android SDK has always been a bit of a chore. Dreamweaver CS5.5 takes all the pain out of this process by providing an “easy install” option, which will do all of the above for you in the background. But there is one problem. Dreamweaver 5.5 comes with an old version of phonegap and some things didn’t work. Here is a guide to update Dreamweaver CS 5.5 to the latest phonegap version. In my case I updated to version 0.9.5.1.

I wrote this guide for phongap 0.95. For version 1.0 step 7 is very important.

  1. Download latest phonegap version.
  2. Extract the downloaded zip file
  3. Open the “Android” folder in the extracted zip.
  4. Remove version from the filenames:  Rename phonegap.0.9.5.1.jar to phonegap.jar and phonegap.0.9.5.1.js to phonegap.js
  5. Copy and overwrite phonegap.js to C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\configuration\NativeAppFramework\DWPhoneGap\android\PhoneGapApp\assets\www
  6. Copy and overwrite phonegap.jar to C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\configuration\NativeAppFramework\DWPhoneGap\android\PhoneGapApp\libs
  7. (Version 1.0 only) Copy the folder “xml”, with the plugins.xml file in it, to C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\configuration\NativeAppFramework\DWPhoneGap\android\PhoneGapApp\res
  8. In your existing mobile phonegap application, replace the old phonegap.js with the new one. And also delete previously builds binary folders like (“com.yourcompany.application_Android”)

12 thoughts on “Dreamweaver 5.5 update to latest phonegap version (Android) (updated for version 1.0)”

  1. Hey – great article. I successfully updated to a pre-1.0 version of PhoneGap using your directions. Now that PhoneGap 1.0 is out, I tried the process again, and ended up getting build errors. Did you have any luck with 1.0?

    1. Hey – great article. I successfully updated to a pre-1.0 version of PhoneGap using your directions. Now that PhoneGap 1.0 is out, I tried the process again, and ended up getting build errors. Did you have any luck with 1.0?

      Yes, there is a solution. Download Phonegap 1.0. Extract it and look for the “sample”-Folder in the Android directory. In the “res” folder there is a directory “xml”. Copy that directory (with the plugins.xml file in it) to “C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\configuration\NativeAppFramework\DWPhoneGap\android\PhoneGapApp\res”.

    2. Hey – great article. I successfully updated to a pre-1.0 version of PhoneGap using your directions. Now that PhoneGap 1.0 is out, I tried the process again, and ended up getting build errors. Did you have any luck with 1.0?

      I think you got to remove all old version of files. It works for me.

  2. followed the above and still have error as below.

    -dex:

    [echo] Converting compiled files and external libraries into C:\Users\Matthew\Desktop\DEV\COMCOM~1.TES\bin\classes.dex…

    [apply]

    [apply] UNEXPECTED TOP-LEVEL EXCEPTION:

    [apply] java.lang.IllegalArgumentException: already added: Lcom/phonegap/AccelListener;

    [apply] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)

    [apply] at com.android.dx.dex.file.DexFile.add(DexFile.java:143)

    [apply] at com.android.dx.command.dexer.Main.processClass(Main.java:372)

    [apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:346)

    [apply] at com.android.dx.command.dexer.Main.access$400(Main.java:59)

    [apply] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:294)

    [apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)

    [apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)

    [apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)

    [apply] at com.android.dx.command.dexer.Main.processOne(Main.java:313)

    [apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:233)

    [apply] at com.android.dx.command.dexer.Main.run(Main.java:185)

    [apply] at com.android.dx.command.dexer.Main.main(Main.java:166)

    [apply] at com.android.dx.command.Main.main(Main.java:90)

    [apply] 1 error; aborting

    BUILD FAILED

    C:\Program Files\Android\android-sdk\tools\ant\main_rules.xml:486: The following error occurred while executing this line:

    C:\Program Files\Android\android-sdk\tools\ant\main_rules.xml:203: apply returned: 1

    Total time: 3 seconds

  3. Thanks for the post! I ran into issues getting it to work too. I got it to work by going into site>application settings and updating the build path to a new directory. Hope thi shelps someone else having the same issue.

  4. @penguintux
    It happened to me also when I left the original phonegap.jar as well as the newest jar in the DWPhoneGap/… folder

    Did it work for someone when compiling your own phonegap.jar (I wanted to include phonegap plugins such as childBrowser)

    anyway great article, I wish I had found before experiencing on my own :-)

  5. Hi can you please suggest me how can i upgrade phonegap 1.5 with Dreamweaver.

  6. Hi can you please suggest me how can i upgrade phonegap 1.5 with Dreamweaver.

    Just do it in the same way as with version 1.0. And rename the file cordova-1.5.0.js to phonegap.js and cordova-1.5.0.jar to phonegap.jar.

    In DefaultActivity.java unter C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\configuration\NativeAppFramework\DWPhoneGap\android\PhoneGapApp

    change the line with

    “import com.phonegap.*;”

    to

    “import org.apache.cordova.*;”

    I didn’t tried it yet, but it might work.

Leave a Reply

Your email address will not be published. Required fields are marked *