Android Studio 2.1 Cannot resolve symbol 'R'

前端 未结 9 1193
鱼传尺愫
鱼传尺愫 2021-02-10 17:10

Android Studio 2.1, Java V8 Update 91, Gradle 2.1.0 .

I know that this questions has been asked many times here, but none of the recommendation solutions works out.

9条回答
  •  北恋
    北恋 (楼主)
    2021-02-10 17:58

    Maybe the error may cause for the tools, trying install Android SDK Build Tools from Tools > Android > SDK Manager. or maybe this error can be caused by adding an activity to a namespace that is different to the root, you can trying >>Import com.example.MyApplication.R; or your also can clean o rebuild your project in Build > Clean Project or Build > Rebuild Project

提交回复
热议问题