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

  • 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
主站蜘蛛池模板: 湛江市| 两当县| 克拉玛依市| 河西区| 南投县| 青川县| 淄博市| 灵寿县| 建阳市| 修文县| 托克逊县| 濮阳市| 天全县| 道真| 二连浩特市| 临武县| 清镇市| 平塘县| 如东县| 凤台县| 胶南市| 东丰县| 德安县| 桦甸市| 绥化市| 新绛县| 呼伦贝尔市| 松阳县| 包头市| 阜康市| 曲阜市| 诏安县| 建平县| 保靖县| 南京市| 巴马| 广安市| 浦江县| 精河县| 永嘉县| 青河县|