When debugging today, Android Studio reported an inexplicable error that
Cannot resolve symbol ‘R’
made people feel overwhelmed. Because this thing is not under my control at all, how couldCannot resolve symbol
this kind of error occur?
Googled a bit and found the solution as follows:
Build -> Clean Project
Tools -> Android -> Sync Project With Gradle Files