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

后端 未结 13 2298
我在风中等你
我在风中等你 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:26

    I've tried Invalidate Caches/Restart..., tried manually delete .idea and .build folders and it didn't work for my case. I using VCS (git) and I just commit my changes, removed the whole project, and Checkout from Version Control. It fixed this problem.

    Android Studio 3.6.3

提交回复
热议问题