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
In my case changing the Gradle version worked.
In gradle-wrapper.properties
changing
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
to
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
and in build.gradle (project level)
changing
classpath 'com.android.tools.build:gradle:3.3.0'
to
classpath 'com.android.tools.build:gradle:3.2.1'