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
I tried Invalidate cache/restart or clean Project -> rebuild project. These didn't work for me.
Invalidate cache/restart
clean Project -> rebuild project
The final solution was open Project window on the left side of IDE, under Project mode, delete .gradle and .idea folder, then sync, it works.
.gradle
.idea