Grade build, even from inside IntelliJ IDEA does not put the dependencies into the \"External Libraries\" folder, so these classes don\'t show up as suggestions in the editor an
After adding dependencies open "Gradle" ('View'->Tool Windows->Gradle) tab and hit "refresh"
example of adding (compile 'io.reactivex:rxjava:1.1.0'):
If Idea still can not resolve dependency, hence it is possibly the dependency is not in mavenCentral() repository and you need add repository where this dependency located into repositories{}