“Dreamweaver is unable to open “PhoneGap” in the emulator. Please consult the buildlog at C:\Users\$name\Desktop\myapp.app_Android\buildlog.log for additional details.”
Building PhoneGap application with Dreamweaver is fairly easy. PhoneGap app are build with HTML, CSS and Javascript. It can be created with any IDE or text editor, yes even vi on Linux. Adobe has made this possible in Dreamweaver as well, you can even launch and debug on the iOS Simulator and Android Emulator all from within Dreamweaver.
There is many good guides out there to get it up and running. From Adobe: Building a mobile app with PhoneGap and Dreamweaver
I updated to the lastest Android SDK and it introduced an additional parameter that is not yet supported by the PhoneGap integration kit within Dreamweaver. This can however easily be fixed in the build.xml file. Go to your target path. Default path is /Users/$name/Desktop. If in doubt you can see which path you selected in the Application Settings dialog.
The actual error is “Dreamweaver is unable to open “PhoneGap” in the emulator. Please consult the buildlog at C:\Users\$name\Desktop\myapp.app_Android\buildlog.log for additional details.”
The Fix: Open build.xml in your project folder (something like C:\Users\$name\Desktop\myapp.app_Android\) in notepad++ or simular. Find the “import” at the end of the file. Looking like this:
[sourcecode language=”html”]
<import file="${sdk.dir}/tools/ant/build.xml" />
[/sourcecode]
Append ‘as=”imported”‘ and add a new “install” target that will override the existing. This will add the nessessary debug file dependencies. The build error is fixed. It should look like this:
[sourcecode language=”html”]
<import file="${sdk.dir}/tools/ant/build.xml" as="imported" />
<!– Override the target to add the dependency –>
<target name="install"
depends="-set-debug-files,imported.install" />
[/sourcecode]
The error has been fixed. The app will now load in the emulator.