D
D
Denis Karakchiev2015-08-28 22:03:08
Android
Denis Karakchiev, 2015-08-28 22:03:08

Cannot resolve symbol R. How to solve?

Problems in such lines of code by default: setContentView(R.layout.activity_main)
in the file MainActivity.java
I did not touch this file at all in this project, added a couple of buttons, a TextViewer and changed the Background of the main Layout.
Clean Project and sync with Graddle files didn't help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Emin, 2015-08-28
@Satori_Kanzo

Take a look at the imports, there may be a wrong import of the R class. R also does not find when the project was unsuccessfully built.

A
Anton Dikhtyaruk, 2016-05-22
@AnthonyDS

file | Project Structure
dominoc925.blogspot.ru/2014/11/fixing-android-stud...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question