我正在使用ActionBarSherlock并尝试使用getSupportMenuInflator()来扩充我的XML菜单,但它给出了一个错误:themethodgetSupportMenuInflator()isundefinedforthetype...我无法弄清楚为什么会显示错误。这是代码:publicvoidonCreateOptionsMenu(Menumenu){getSupportMenuInflater().inflate(R.menu.activity_main,menu);...}我该如何解决? 最佳答案 你需要