Question: I am writing an app for android which uses Fragments, but when I run the application on a GingerBread phone, I get an error in this line:

```
inflater.inflate(R.layout.fragment_location, container, false);

```

which says

```
android.view.InflateException: Binary XML file line #8: Error inflating class <unknown>

```

everything is supposedly good, the MainActivity extends FragmentActivity, The ViewPager, the FragmentPagerAdapter and the Fragment are all from the support package. so what am I doing wrong?

Answer: 
On the left screen of Eclipse:

click your project then click "libs" 
You will see the libraries that you were used on your project. 
Right click the "android-support-v4.jar" select the "Build Path" / "Add to Build Path"

After do this, 
top of the your activity delete the import things that about the FRAGMENTS. 

use v4.app.Fragment 

now try it again?
`Fragment` is introduced in `API level 11 (Honeycomb)`. So if you want to use `Fragments` flexibly in below `AIP level 11` you should use library like `ABS (ActionBarSherlock)` you can get it from github(<https://github.com/JakeWharton/ActionBarSherlock>). Better use that.