gpt4 book ai didi

java - 找不到符号变量 main

转载 作者:行者123 更新时间:2023-11-29 20:54:13 25 4
gpt4 key购买 nike

<分区>

我正在努力学习本教程

http://instinctcoder.com/android-studio-sqlite-database-example/

但是我遇到了 MainActivity.java 的问题:

   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;
}

由于某种原因,它找不到符号“main”。我不知道这意味着什么或如何正确解决它。

我也遇到了同样的问题:

@Override
public boolean onCreateOptionsMenu(Menu menu) {

// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.student_detail, menu);
return true;
}

这里找不到符号“student_detail”

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com