R.java file is not getting created

后端 未结 5 949
走了就别回头了
走了就别回头了 2021-01-06 21:45

I had R.java file in my android application. But I don\'t know, It is delete some how. To create it again I clean my project and also Rebuild my project by clicking on Build

5条回答
  •  孤街浪徒
    2021-01-06 21:53

    Try this:

    1. Delete any import to an R.java class
    2. Move your cursor to a reference to any button/layout/string/whatever-coming-from-R, delete the last character, and hit ctrl+space. Eclipse will try to codehint you, automatically importing the correct R.java.
    3. clean and rebuild.

提交回复
热议问题