“cannot resolve symbol R” in Android Studio
Click on Build->Clean Project and that will perform a gradle clean 這個沒有試成功
In the latest versions of Android Studio, at least for me, the following works:
"Tools" -> "Android" -> "Sync Project with Gradle Files"
這個試驗第二次 去掉了R的紅色現象。 同時這個還可以用來解決,外來倒入文件引起的R顯示紅色的現象。