Missing R.java file even though project cleaned

后端 未结 12 1687
猫巷女王i
猫巷女王i 2020-12-03 07:41

Every time in code that I have an R, I get an error R cannot be resolved to a variable.

The R.java file appears to be missing.

I have tried cleaning the proj

12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 08:16

    This happened in my case as a image that was present in res/drawable-hdpi had a capital character, I made it small then it worked.

提交回复
热议问题