程序中一直有这个错误Syntax error, insert ";" to complete FieldDeclaration 大家帮忙看看

2025-03-05 11:09:18
推荐回答(2个)
回答1:

你好!
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}; //这里加个分号

回答2:

JAVA莫有弄过,表示爱莫能助。不过提示是一个语法错误。应该好弄