cannot resolved method getChildFragmentManager()
<p>error: The 'childFragmentManager' parameter only can be used if the getChildFragmentManager() method is available in android.support.v4.app.Fragment, update your support library version.</p>

<p>i have  compile 'com.android.support:support-v4:24.2.0' in my gradle. My code like;</p>

<pre><code> import android.support.v4.app.Fragment;
 import org.androidannotations.annotations.*;
 import org.androidannotations.annotations.sharedpreferences.Pref;
.
.

@EFragment(R.layout.fragment_main)
public class MainFragment extends Fragment {
@Pref
ApplicationSettings_ applicationSettings;
@ViewById(R.id.bot)
public LinearLayout bot;
@ViewById(R.id.center)
public LinearLayout center;
@Bean
UIItemGenerator uiItemGenerator;
@SystemService
LayoutInflater layoutInflater;
@FragmentById(value = R.id.contentFragment,childFragment = true)
public ContentFragment contentFragment;

public MainFragment() {
}

@Click(R.id.imagebutton_ribbon)
public void ribbonClick(View view) {
    view.setVisibility(View.GONE);
}

.
.
.
@AfterViews
public void afterViews() {
    if (contentFragment == null)
        contentFragment = (ContentFragment) this.getChildFragmentManager().findFragmentById(R.id.contentFragment);
    for (int j = 0; j &lt; bot.getChildCount(); j++) {
        bot.getChildAt(j).setSelected(false);
    }
    for (int j = 0; j &lt; top.getChildCount(); j++) {
        top.getChildAt(j).setSelected(false);
    }
    ll_home.setSelected(true);
    ll_allrooms.setSelected(true);
    initUI();
    contentFragment.generateContent(-1, -1);
    imagebutton_top_rightarrow.setSelected(true);
    imagebutton_bot_rightarrow.setSelected(true);
</code></pre>