Android Studio “cannot resolve symbol” but project compiles and works

后端 未结 13 2291
我在风中等你
我在风中等你 2020-12-24 10:49

The project compiles fine. However, Android studio 3.0.1 shows reference to one particular library in red and displays \"cannot resolve symbol\". Even single stepping into

13条回答
  •  醉话见心
    2020-12-24 11:30

    Firsty try to Clean and rebuild project from Build -> Clean project & then Build -> Rebuild project.

    If that doesn't work Invalidate Caches/Restart always works for me. Do it from File -> invalidate Caches/Restart

    Then click on invalidate and restart

    Hopefully this helps.

提交回复
热议问题