Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个计算器项目。我实施工作的班级看不到 XML 布局。当我使用setContentView(R.layout.)时,它看不到任何 xml 文件。尽管欢迎类工作正常并将其内容视图设置为欢迎 XML。
setContentView(R.layout.)
谁能告诉我为什么这是一个错误?
您可以尝试以下几件事:
import my.package.name.R
import Android.R
让我知道这些是否有效。