phonegap/phonegap-plugins — Issue #196: Newbie try to test on Android BarcodeScanner plugin, but failed.
Author: scloh
Created: 2011-10-25 08:47:34+00:00
State: open

Hi,
I'm very new to phonegap, currently i try to test on the Android Barcode Scanner plugin in my Eclipse SDK, even i follow the developer step to add the project library, but i failed to get it Run.

When i click on Run, i get this error message "Android library projects cannot be launched."

Adding the Plugin to your project

1. Add the 'LibraryProject' into Eclipse. File -> New Android Project -> create project from existing source.
2. In the new project you've just added to Eclipse go to the project properties. Select the Android section and at the bottom of the dialog check the "Is Library" checkbox.
3. In your application go into the project properties. In the Android section under library click the Add button and select the library you created in step 2.
4. To install the plugin, move barcodescanner.js to your project's www folder and include a reference to it in your html files.
5. Create a folder called 'com/phonegap/plugins/barcodescanner' within your project's src folder.
6. And copy the BarcodeScanner.java file into that new folder.
....

May i know is it i did anything wrong in the step? i suspect it happen in step 3. When i click on the Add button, the project selection window is empty, nothing for me to add.

Can someone please assist me on details to add the project into eclipse and make it Run?

Thanks.....