Frage

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 ?

War es hilfreich?

Lösung

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.

Andere Tipps

The issue was with the wrong target build platform being selected when I was importing it.

Solution:

  1. Right click on project->properties.
  2. Select Android on left panel.
  3. Tick Android 4.4.2
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top