Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android HoloEverywhere: mChildFragmentManager cannot be resolved to a variable

I followed this closely and successfully added ActionBarSherlock lib to both my project and HoloEverywhere. However when I built the HoloEverywhere library I got these errors:

In android.support.v4.app package, _HoloFragment.java:

mChildFragmentManager cannot be resolved to a variable

In android.support.v4.app package, _HoloFragmentInflater.java:

mParentFragment cannot be resolved or is not a field

The method moveToState(Fragment, int, int, int) in the type FragmentManagerImpl is not applicable for the arguments (Fragment, int, int, int, boolean)

The method getChildFragmentManager() is undefined for the type Fragment

I tried almost everything to get it working but no success. Please help!

like image 313
jerrytouille Avatar asked Dec 21 '22 07:12

jerrytouille


1 Answers

You need to update the support library v4 in your ActionBarSherlock library to revision 11 or revision 12.

You can do this by downloading the latest revision in the SDK manager. Go to SDK Manager > Extras and then download Android Support Library.

In your Android directory, go to \extras\android\support\v4 and copy android-support-v4.jar from here into your ActionBarSherlock library. HoloEverywhere should now build fine.

I had the same error and posted the issue here:

mChildFragmentManager cannot be resolved to a variable

like image 199
Sean O'Toole Avatar answered Mar 15 '23 23:03

Sean O'Toole