Cannot find R.layout.activity_main

后端 未结 29 2351
轮回少年
轮回少年 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:19

    I have a few suggestions:

    1. Make sure you don't have any other errors other than the R-related errors. Right-click your project folder in Eclipse, Android Tools -> Fix Project Properties.

      2.Check to make sure you have the correct R imported. Sometimes the default Android.R can be imported.

      3.Check for errors in your layout XML files.

提交回复
热议问题