java: R cannot be resolved to a variable

后端 未结 6 1998
北恋
北恋 2021-01-27 06:03

I know this question has been asked before but I am at my witts end with this. I have just created a new project and getting this error.

Ofcourse the R.java file is not

6条回答
  •  时光说笑
    2021-01-27 06:16

    In my case I am using java 1.6 and it is not supporting android 5.0 so removed those library files in android sdk, then clean the project it is working fine.

提交回复
热议问题