I've built a basic cordova package based on the directions here:
http://codingsquare.blogspot.in/2013/08/creating-cordova-3-android-project.html and it worked fine. I recommend this document. Then I added a plugin "Device" based on the directions here:
http://codingsquare.blogspot.in/2013/09/adding-plugins-to-your-cordova-android.html. I recommend this document as well. One of the best I've read. Adding the plugin "Device" worked fine. Then based on the same document, I added a plugin "BarcodeScanner". After "Cleaning and Building" I got errors in a popup window (no errors were listed in the "Problems" view. First there is the "Error Running Builder 'Java Builder' on project 'HelloCordova'. Preference node 'org.eclipse.core' has been removed". I have no idea what this error is but the only changes between adding the "Device" plugin and this "BarcodeScanner" plugin are code changes. Nothing to do with Eclipse directly or the project. Then I closed and reopened Eclipse. After Cleaning and Building the project again, I get a different error:"Error occurred during the build. Errors running builder "Android Pre Compiler" on project 'HelloCordova'. Path must include project and resource name: /HelloCordova". Next I closed and reopened Eclipse again and without even Cleaning, Eclipse gave me two more errors in the "Problems" view: "Declared package io.cordova.hellocordova does not match src.io.cordova.helloCordova" and "org.apache.cordova.device doesn't match src.org.apache.cordova.device". Finally, I closed and reopened Eclipse for the last time and the "Problems" view errors and the popup Build error remained the same. Ah! Consistency! Not. I just started attempting to use PhoneGap a week ago but I haven't even been able to start on my own project. I cannot successfully run a sample app. And Eclipse is like a "Whack-A-Mole" game, i.e., fix one error or close the IDE and the status of the project changes. Even simply doing nothing sometimes causes more and/or different errors to pop up. Please, how do I overcome these issues and move forward. Thanks in advance for any help. I'm using Win 7.