0

I'm getting lots of errors in a sample project i imported, iv tried cleaning project and changing compiler level back and forth, but it hasn't helped, also tried adding support library.

The way I got sample was file> new> others> android project sample

Some of the errors i'm getting

Fragment Tabhost cannot be resolved to a type.

Fragment page adapter cannot be resolved to a type.

The import android.support.v13 cannot be resolved.

The method get count() of type action bar tab pager. tabadapter must override of implement a supertype method.

I haven't messed with it all the errors where there from when i opened it.

Robert
  • 1,107
  • 2
  • 8
  • 8

2 Answers2

0

It seems you're missing support library. In order to install it:

  • Right click your project
  • Select Android Tools / Add support library...
  • Follow the dialog steps
ssantos
  • 16,001
  • 7
  • 50
  • 70
0

As the answer above states, Add the missing libraries, which can be found at "sdk"/extras/android/support/v13/ and "sdk"/extras/android/support/v4/

http://developer.android.com/tools/support-library/features.html

I did this by adding external jars to my project.

  1. Right click on project
  2. Click on Properties
  3. Select Java Build Path
  4. Select the Libraries tab
  5. Click on the Add External Jars... button
  6. Browse to "sdk*"/extras/android/support/v4/
  7. Select android-support-v4
  8. Click open or enter

Do the same for v13 and the errors disappear.

*this is where your sdk is located.

iSimply
  • 49
  • 9