官术网_书友最值得收藏!

  • Learning RxJava
  • Thomas Nield
  • 228字
  • 2021-07-02 22:22:49

Navigating the Central Repository

To bring in RxJava as a dependency, you have a few options. The best place to start is to go to The Central Repository (search http://search.maven.org/) and search for rxjav. You should see RxJava 2.0 and RxJava 1.0 as separate repositories at the top of the search results, as shown in the following screenshot:

Searching for RxJava in the Central Repository (RxJava 2.0 and 1.0 are highlighted)

At the time of writing, RxJava 2.0.2 is the latest version for RxJava 2.0 and RxJava 1.2.3 is the latest for RxJava 1.0. You can download the latest JAR file for either by clicking the JAR links in the far right under the Download column. You can then configure your project to use the JAR file.

However, you might want to consider using Gradle or Maven to automatically import these libraries into your project. This way, you can easily share and store your code project (through GIT or other version control systems) without having to download and configure RxJava manually into it each time. To view the latest configurations for Maven, Gradle, and several other build automation systems, click on the version number for either of the repositories, as highlighted in the following screenshot:

Click the version number under the Latest Version column to view the configurations for Maven, Gradle, and other major build automation systems
主站蜘蛛池模板: 景德镇市| 调兵山市| 卢湾区| 衢州市| 蓬安县| 长沙市| 察哈| 漳浦县| 武汉市| 平安县| 辽阳县| 郎溪县| 册亨县| 黄大仙区| 广昌县| 治多县| 长春市| 建平县| 凤山县| 贞丰县| 称多县| 南阳市| 永仁县| 梧州市| 扶沟县| 同仁县| 松潘县| 玉环县| 南江县| 和静县| 阿瓦提县| 泉州市| 北票市| 昌图县| 舟曲县| 万载县| 阳曲县| 墨江| 富裕县| 名山县| 凉城县|