Getting Gradle dependencies in IntelliJ IDEA using Gradle build

前端 未结 7 1181
一个人的身影
一个人的身影 2021-01-29 20:46

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

7条回答
  •  广开言路
    2021-01-29 21:41

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

提交回复
热议问题