Search code examples
androideclipsezbar

Zbar R cannot be resovled


I have just imported the zbar example project into eclipse. I have started the AVD, but when I go to run the zbar example I get a pop-up saying there are errors in the code.

enter image description here

When I went looking for errors the only ones I could find are the ones shown below

enter image description here

I removed the project from eclipse and re-downloaded the zip file and imported it all again but still have the same results. Has anyone else run into this problem ?


Solution

  • There are 2 R classes now in your app:

    • your own's app R class (from your app's namespace).
    • zbar's R class

    You should either sort out the import instruction to make sure you import the right R class or use a full namespace in front of R.