Cannot find R.layout.activity_main

后端 未结 29 2315
轮回少年
轮回少年 2020-12-01 01:58

I was trying to work out with multiple layout using some online tutorials. The thing is my program was building and compiling correctly as long as there was only one XML fil

29条回答
  •  攒了一身酷
    2020-12-01 02:34

    I had a similar problem.
    It happened suddenly, after deleting some pictures from res. drawable. I did two things.

    • First I checked all my images in the drawable folder,if they all have preview. one of mine was damaged.
    • Secondly, I closed all opened android studio and emulator. After that every things worked fine.

提交回复
热议问题