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

import org.apache.cordova.api cannot be resolved with phonegap 3.0.0 #29

Closed
pandaduc opened this issue Jul 21, 2013 · 3 comments
Closed

Comments

@pandaduc
Copy link

Hi,

I'm working with the latest phonegap 3.0.0, I was trying to integrate BarcodeScanner in the Android app. The barcodescanner library is added successfully but I got the error as shown in the image below.

error

I was following the instruction : https://github.com/wildabeast/BarcodeScanner/tree/master/src/android , "Building with plugman" .

I use windows 7, ADT Eclipse, got Java and Ant, variables set. I really appreciate if you can give a suggestion of how to fix it.

Thank you

@Eccenux
Copy link
Contributor

Eccenux commented Jul 24, 2013

Will add a patch for that in a moment.

@Eccenux
Copy link
Contributor

Eccenux commented Jul 24, 2013

I so f**king hate git at the moment...

You can get a working version here:
https://github.com/Eccenux/BarcodeScanner/blob/master/src/android/com/phonegap/plugins/barcodescanner/BarcodeScanner.java

You can also just pull my repo like so (assuming you are in your PG project):

git clone https://github.com/Eccenux/BarcodeScanner.git plugins\com.phonegap.plugins.barcodescanner

And install like so:

plugman --plugins_dir plugins --platform android --project platforms\android --plugin com.phonegap.plugins.barcodescanner

I've tested this only on Android 4.2 on Nexus 7, so would be glad if you could test on different devices.

@pandaduc
Copy link
Author

pandaduc commented Aug 2, 2013

Thank you so much for your help. I'll try it.

@pandaduc pandaduc closed this as completed Aug 2, 2013
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