Giorgi Orvelashvili
Giorgi Orvelashvili

Reputation: 113

can not extend FragmentActivity

I want to extend FragmentActivity but the error is "FragmentActivity cannot be resolved to a type" How can I resolve?

public class Info_page extends FragmentActivity  {

Upvotes: 0

Views: 1208

Answers (2)

Jatin
Jatin

Reputation: 1670

To add v4 support library, follow steps:

  • Right click on your project folder
  • Build path-> Configure build path
  • Add External Jars
  • Select "android-support-v4.jar" file (It'll be located in Android "android-sdk-windows\extras\android\support") then press OK.

Upvotes: 3

Marija Milosevic
Marija Milosevic

Reputation: 516

Whenever you get this error : cannot be resolved as type you probably didn't import the missing class. try to add import android.support.v4.app.FragmentActivity; And try to google before asking for help here... Or to search the site for a similar question.

Upvotes: 0

Related Questions