Problem com.google.zxing.BarcodeForma

2,319 views
Skip to first unread message

Jorge nieto

unread,
Jan 20, 2011, 6:16:59 PM1/20/11
to zxing
I'm newbie developing Android programs, and I have a problem when I
try to import Zxing to my Eclipse.
Can anybody help me with this error?
"The import com.google.zxing.BarcodeFormat cannot be resolved
"The import com.google.zxing.BarcodeFormatcannot be resolved"
"The import com.google.zxing.Result cannot be resolved"
"The import com.google.zxing.ResultMetadataType cannot be resolved"
"The import com.google.zxing.ResultPoint cannot be resolved"

Thanks a lot.

Jorge nieto

unread,
Jan 20, 2011, 6:56:41 PM1/20/11
to zxing
Hi!
I did this:

1. Install the Android SDK and Eclipse plugins following this guide:
http://code.google.com/android/intro/installing.html

2. Download the ZXing-1.6

3. Expand the zip into /home/zxing

4. In Eclipse, open the Android project found in c:\zxing\android:

- Go to File -> New Project -> Android Project
- Click on "Use from existing project"
- For the directory, type in "c:\zxing\android"

5. If there some dependencies missing, then import the source files
found following these instructions:

Right click on Project
- Go to New -> Source Folder
- For Folder name, call it "srccore"
- Click on Finish

Right click on "srccore"
- Click on Import
- Click on Files
- For "From directory:" type in C:\workspaces\ZXing-1.6\zxing\core\src
- Make sure the checkbox next to "src" is checked

Go to Project -> Clean

And i got this errors:
"The import com.google.zxing.BarcodeFormat cannot be resolved
"The import com.google.zxing.BarcodeFormatcannot be resolved"
"The import com.google.zxing.Result cannot be resolved"
"The import com.google.zxing.ResultMetadataType cannot be resolved"
"The import com.google.zxing.ResultPoint cannot be resolved"

what I could do?
Thanks a lot.



Reply all
Reply to author
Forward
0 new messages