FragmentActivity cannot be resolved to a type

前端 未结 4 2093
情话喂你
情话喂你 2020-11-30 00:45

I\'m trying the application from this blog. While extending the FragmentActivity, I\'m getting the following error:

`FragmentActivity` was not a         


        
4条回答
  •  半阙折子戏
    2020-11-30 01:26

    If you are using eclipse and windows, here is how you can get rid of this error.

    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 click OK.
    

提交回复
热议问题