Skip to content

Problem with Phonegap Barcode Scanner plugin "Android library projects cannot be launched" #133

@I0ri

Description

@I0ri

Hi guys,

I am a 1st timer in developing mobile app and it is also my 1st time using phonegap.
I am trying to create a QR Code scanner mobile web app using phonegap framework.

I have follow the below websites tutorial and there are good tutorials but I encounter a problem.

https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/BarcodeScanner

http://mayukhsaha.wordpress.com/2013/07/09/barcode-qr-code-scanner-and-encoder-using-phonegap-android-and-eclipse/comment-page-1/#comment-203

http://simonmacdonald.blogspot.sg/2011/12/installing-barcode-plugin-for-phonegap.html

I am suppose to do the following which is part of the steps. "In the Properties dialog, select the Android tab and ensure the Is Library checkbox is click."

Image -> http://s24.postimg.org/yanrvjvfo/check.jpg

But if I check the 'is library' checkbox, I will not be able to compile and run my app as it will display an error at eclipse "Android library projects cannot be launched"

Image - > http://s17.postimg.org/nlx6yrwb2/error.jpg

If it is unchecked, my app is able to run and I am able to see the below interface on my phone but the QR code scanning and encoding function will not work.

Image -> http://mayukhsaha.files.wordpress.com/2013/07/barcode-2013-07-09-6.png?w=645

Using Android ADT Bundle:
Eclipse
ADT
Phonegap Cordova 2.9.0
Barcode scanner plugin 2.2.0

How am I suppose to make the QR Code reader works in my app?
please assist me in details as I am a newbie in phonegap. Thanks alot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions