“Cannot resolve symbol R” in Android studio

Front end developers must read! Starting from scratch, teach you to build a low code website platform in stages>>>

Question:

Want to improve this post?

Want to improve this article

Provide detailed answers to this question, including citations and an explanation of why your answer is correct.

Provide a detailed answer to this question, including the citation and an explanation of why the answer is correct

Answers without enough detail may be edited or deleted.

Answers that are not detailed enough may be edited or deleted

in every instance in all of my classes where I reference r.id.something , the R is in red and it says “cannot resolve symbol R. in all instances of all classes that I refer to r.id.something , the R is in red and displays” cannot resolve symbol R “ Also every time there is R.layout.something it is underlined in red and says “cannot resolve method setContentView(?)”. similarly, every time there is r.layout.something it will use a red underline to indicate “unable to parse method setcontentview (?)” The project always builds fine It’s annoying to see this all the time I have read many other questions on here about something similar but most involved importing projects from eclipse. I have read many other questions here, which are related to similar but most involved importing projects from eclipse I am using what I believe to be the most recent version of Android studio and the project was created with Android studio and worked without any “cannot resolve R” problems. I am using what I think is the latest version of Android studio, and the project was created with Android studio, And it can work normally without any “unsolvable R” problem I would like to know what causes this if anyone knows


Solution:

reference 1:

https://stackoom.com/question/19YWW/Android-Studio In – the symbol r cannot be resolved

Reference 2:

https://oldbug.net/q/19YWW/cannot-resolve-symbol-R-in-Android-Studio

Similar Posts: