質問

I tried to load the demos on ActionBarSherlock but I'm getting an error on its Activities using FragmentTransaction. The activities are FeatureToggles and TabNavigation. I'm also getting an error on TabNavigationCollapsed because it's extending TabNavigation which uses FragmentTransaction.

The error is:

The import android.support.v4.app.FragmentTransaction cannot be resolved

What could be my error? My Project Build Target is Android 4.0.

役に立ちましたか?

解決

Is there added Android support library in Build Path? In "lib" folder of your project should be file android-support-v4.jar.

If not, firstly download it through your SDK Manager

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top