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!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With