“cannot resolve symbol R” in Android Studio

“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顯示紅色的現象。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章