Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
I0ri opened this issue Jan 7, 2014 · 2 comments

Comments

@I0ri
Copy link

I0ri commented Jan 7, 2014

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!

@I0ri
Copy link
Author

I0ri commented Jan 8, 2014

Hi all. it works already. thanks. but when I scan a normal text, it will auto close the app. url is fine. any idea?

@kingfifer
Copy link

hi my friend
What did you do to set your own program ?
my program closing with this allert "unfortenately My borcode Scanner has stopped"
please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants