Eclipse a Whack-A-Mole Game?

281 views
Skip to first unread message

docj...@gmail.com

unread,
Sep 24, 2013, 3:57:56 PM9/24/13
to phon...@googlegroups.com
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.

docj...@gmail.com

unread,
Sep 24, 2013, 8:30:34 PM9/24/13
to phon...@googlegroups.com
I noticed that none of the projects listed in Eclipse would RUN. They all got the popup error "bla bla Android Pre Compiler". So I reinstalled Eclipse. Now all projects, with the exception of the project with plugin, RUN fine. But the project with plugin, which is what this is all about, continues to get the Pre Compiler error. Only now the popup window is now entitled "New Launch Configuration error", but,as I said , the error is the same. Help!

svkirans

unread,
Sep 25, 2013, 3:53:27 AM9/25/13
to phon...@googlegroups.com
Just taking a step back, did you Android plugin on your eclipse ?

svkirans

unread,
Sep 25, 2013, 3:58:31 AM9/25/13
to phon...@googlegroups.com
Taking back my Android plugin installation question. Looks like there is a bug in Android which is causing this.


There is a preview version released to fix this issue. 

docj...@gmail.com

unread,
Sep 26, 2013, 12:34:22 AM9/26/13
to phon...@googlegroups.com
Hello svkirans. I'm sorry but is there a solution somewhere in that link? As a comment, I'm wondering why I'm suffering through debugging of something I didn't write or have anything to do with. I followed a tutorial supplied by you and it looked very good, but the instructions relative to the barcodescanner cause errors. It is hard to have faith in something under those conditions, plus the inconsistency of Eclipse. Wow!


On Tuesday, September 24, 2013 12:57:56 PM UTC-7, docj...@gmail.com wrote:

svkirans

unread,
Sep 26, 2013, 1:37:31 AM9/26/13
to phon...@googlegroups.com
I understand and share your concern on facing some weird issue that too without making any changes to the project. But neither Cordova nor eclipse is responsible for that. Its a bug in Android SDK which may be causing this. So change your Android SDK, install the latest version if possible. If you already have the latest version, install the preview version.

docj...@gmail.com

unread,
Sep 26, 2013, 12:40:58 PM9/26/13
to phon...@googlegroups.com
I've done that several times but will try again. However, a problem in the SDK wouldn't have anything to do with the CLI errors, right?


On Tuesday, September 24, 2013 12:57:56 PM UTC-7, docj...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages