Android BarcodeScanner Plugin Error (AsyncTask.THREAD_POOL_EXECUTOR)

65 views
Skip to first unread message

Zack

unread,
Feb 13, 2013, 11:08:08 AM2/13/13
to phon...@googlegroups.com
I'm trying to implement the BarcodeScanner plugin for Android.  I'm just trying to get a sample test project up and running as a proof of concept.

I followed the instructions in the README.md file but there appears to be some error with the zxing library that the plugin uses.  In the HoneycombAsyncTaskExecInterface.java file, there is a line that references the AsyncTask.THREAD_POOL_EXECUTOR, which Eclipse apparently doesn't like.  It gives me an error saying it can't find an identifier for THREAD_POOL_EXECUTOR and so it won't let me build.

Anyone have any suggestions?

Thanks,

Zack

Simon MacDonald

unread,
Feb 13, 2013, 4:46:34 PM2/13/13
to phonegap
Always build with the latest version of the Android SDK. I'm betting when you switch to API level 16 or 17 this will go away.



--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Zack

unread,
Feb 14, 2013, 10:11:47 AM2/14/13
to phon...@googlegroups.com
No, I just downloaded and installed the latest API 17 SDK but that didn't make the error go away.  Is there something else I need to do? 

Zack

Simon MacDonald

unread,
Feb 16, 2013, 11:34:37 PM2/16/13
to phonegap
Is you target SDK set to 17 in the project? That should make any
compilation errors go away.

Simon Mac Donald
http://hi.im/simonmacdonald


Reply all
Reply to author
Forward
0 new messages