R cannot be resolved to a variable

后端 未结 29 1215
不知归路
不知归路 2020-11-28 14:14

I would like to fix this error

R cannot be resolved to a variable

I looked up many answers, but I could not get the right one;

29条回答
  •  盖世英雄少女心
    2020-11-28 15:04

    I had the same problem. I fix it by deleting the file in 'gen' directory, then I clean the project then the R.java was automatically generated.

提交回复
热议问题