Error in all the classes files: R cannot be resolved

前端 未结 5 487
深忆病人
深忆病人 2021-01-29 10:34

Example code:

setContentView(R.layout.main);

Error:

R cannot be resolved

There\'s this error in all the class

5条回答
  •  一个人的身影
    2021-01-29 11:31

    1) Delete your Gen folder (It will be automatically created afterwards).

    2) Clean you project.

    See the miracle. :)

提交回复
热议问题