我正在使用ActionBarSherlock并尝试使用 扩展我的 XML 菜单getSupportMenuInflator(),但它给出了一个错误:
the method getSupportMenuInflator() is undefined for the type ...
我无法弄清楚为什么它显示错误。这是代码:
public void onCreateOptionsMenu(Menu menu) {
    getSupportMenuInflater().inflate(R.menu.activity_main, menu);
    ...
}
我如何解决它?