Cannot resolve symbol AppCompatActivity - Support v7 libraries aren't recognized?

后端 未结 25 1667
情深已故
情深已故 2020-12-07 18:39

I\'m trying to figure out why the heck my Android studio isn\'t recognizing the AppCompat v7 library correctly. The import statement below shows up as gray and says there\'s

25条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 19:13

    For me, Even after upgrading to appcompat-v7:22.1.0, in which AppCompatActivty is added, the problem was not resolved for me, Android Studio was giving same problem

    Cannot resolve symbol 'AppCompatActivity'

    Sometimes clearing the android studio caches help.

    In android studio I just cleared the caches and restarted with the following option--

    File->Invalidate Caches/Restart

提交回复
热议问题