Getting Gradle dependencies in IntelliJ IDEA using Gradle build

After adding dependencies open “Gradle” (‘View’->Tool Windows->Gradle) tab and hit “refresh”

example of adding (compile ‘io.reactivex:rxjava:1.1.0’):

hit refresh

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{}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)