Android Studio 中 build.gradle 中 dependencies 下的 comile 后面的内容的来源
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
答案来自于:http://mvnrepository.com/
你知道的名字应该是 rxandroid,而它依赖 rxjava,如果你想使用 rxjava 的最新版本,而不是 rxandroid 默认指定的依赖版本,那么就加上它的 compile.
<!-- https://mvnrepository.com/artifact/io.reactivex.rxjava2/rxandroid -->
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxandroid</artifactId>
<version>2.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.reactivex.rxjava2/rxjava -->
<dependency>
<groupId>io.reactivex.rxjava2</groupId>
<artifactId>rxjava</artifactId>
<version>2.1.0</version>
</dependency>
