0

There is a error which displays the XML. It says:

The following classes could not be found:

  • Gallery (Change to android.widget.Gallery, Fix Build Path, Edit XML)

The gallery.java exists in the widget file. Why is there a error, and how do I fix this?

2 Answers2

0

This is an old post, I thought I put my 2 cents into it. Gallery is deprecated.

Use ViewPager. A nice tutorial in here. http://thepseudocoder.wordpress.com/2011/10/05/android-page-swiping-using-viewpager/

Mr H
  • 5,254
  • 3
  • 38
  • 43
-1

If you are using Eclipse then go to Project tab and clean the project. Then refresh it. Try running it again. It should fix the issue.

Manu
  • 81
  • 1
  • 5