Eclipse The R class is not being built for my android projects

后端 未结 3 776
自闭症患者
自闭症患者 2021-01-24 01:49

My system crashed and I had to re-install all my software. Now only like,..... half my android projects will build. It seems like the R class is not being built. I had this is

3条回答
  •  萌比男神i
    2021-01-24 02:20

    There are two main reasons for this. Either your import statement for importing R or there is an error in an XML file. At the top if your class, make sure your doing the following:

    import your.pacakge.R; //make sure its not import android.R;
    

    If that doesn't work, check the XML file you're working. Make sure it has no errors (open tags, misspelled tags, etc..)

提交回复
热议问题