Hello World On Phonegap Build
Solution 1:
Try updating phonegap or any related programmes because one seems to be outdated. If your using any plugins like adding in your app try to see if their the latest version as well.
Solution 2:
Delete and restart instead of update code
My solution was to delete my existing app (instead of "update code"). Apparently, there was some "caching" of prior code that didn't get overwritten so I had to completely wipe the old .zip file and start over with a new one.
Then it worked.
Plugins are pulled in config.xml
After a little more tinkering, I might be starting to understand what's happening. I just downloaded the phonegap-start app from github.com/phonegap/phonegap-start and the same problem resurfaced. I think the problem is caused by the plugin source files referenced in the config.xml file. And I think these references were not deleted when I selected "update code" instead of deleting the old app and starting over. The relevant section of the config.xml file is below.
config.xml snippet<!-- Core plugins --><gap:pluginname="org.apache.cordova.battery-status" /><gap:pluginname="org.apache.cordova.camera" /><gap:pluginname="org.apache.cordova.media-capture" /><gap:pluginname="org.apache.cordova.console" /><gap:pluginname="org.apache.cordova.contacts" /><gap:pluginname="org.apache.cordova.device" /><gap:pluginname="org.apache.cordova.device-motion" /><gap:pluginname="org.apache.cordova.device-orientation" /><gap:pluginname="org.apache.cordova.dialogs" /><gap:pluginname="org.apache.cordova.file" /><gap:pluginname="org.apache.cordova.file-transfer" /><gap:pluginname="org.apache.cordova.geolocation" /><gap:pluginname="org.apache.cordova.globalization" /><gap:pluginname="org.apache.cordova.inappbrowser" /><gap:pluginname="org.apache.cordova.media" /><gap:pluginname="org.apache.cordova.network-information" /><gap:pluginname="org.apache.cordova.splashscreen" /><gap:pluginname="org.apache.cordova.vibration" />
Solution 3:
This Youtube video shows how to install and use PhoneGap Build using a sample application. https://www.youtube.com/watch?v=UOjoNEUFeVE
Here is the Github repository of the source code. https://github.com/ccoenraets/EmployeeDirectory
It works!
Solution 4:
I think I will go in a different direction entirely by using the cca (Chrome Cordova App) toolchain to develop Mobile Chrome Apps.
Post a Comment for "Hello World On Phonegap Build"