In the Android Studio project, the letter R suddenly stood out in red.
setContentView(R.layout.la_t); Found on the web that this could mean an error of resources. But what to do with it? How to fix? Help me please!
In the Android Studio project, the letter R suddenly stood out in red.
setContentView(R.layout.la_t); Found on the web that this could mean an error of resources. But what to do with it? How to fix? Help me please!
Usually helps Tools -> Android -> Sync Project witch Gradle Files, or Build -> Clean Project, Rebuild Project
Yes, it happens from time to time. You should not be afraid of this - everything is in order with your project if you, of course, have not imported it.
There are different reasons for this: reconfigure the Gradle config (build your Android project), make sure that the paths to the Android SDK have not changed. And if you get into the project config, which is in the context menu, you will most likely see the source of the error.
Climb on Project Structure ..., restart ADB, in the end. This, in general, may be a bug in the not yet fully stable Android Studio.
Try to restart the project, before saving everything. If it doesn't help, go to the Build - Clean Project / Rebuild Project tab.
Source: https://ru.stackoverflow.com/questions/409297/
All Articles