- Learning RxJava
- Thomas Nield
- 197字
- 2021-07-02 22:22:49
Using Gradle
There are several automated build systems available, but the two most mainstream options are Gradle and Maven. Gradle is somewhat a successor to Maven and is especially the go-to build automation solution for Android development. If you are not familiar with Gradle and would like to learn how to use it, check out the Gradle Getting Started guide (https://gradle.org/getting-started-gradle-java/).
There are also several decent books that cover Gradle in varying degrees of depth, which you can find at https://gradle.org/books/. The following screenshot displays the The Central Repository page showing how to set up RxJava 2.0.2 for Gradle:

In your build.gradle script, ensure that you have declared mavenCentral() as one of your repositories. Type in or paste that dependency line compile 'io.reactivex.rxjava2:rxjava:x.y.z', where x.y.z is the version number you want to use, as shown in the following code snippet:
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'io.reactivex.rxjava2:rxjava:x.y.z'
}
Build your Gradle project and you should be good to go! You will then have RxJava and its types available for use in your project.
- 跟老齊學(xué)Python:輕松入門
- INSTANT MinGW Starter
- Python高效開發(fā)實(shí)戰(zhàn):Django、Tornado、Flask、Twisted(第3版)
- Java性能權(quán)威指南(第2版)
- Redis Essentials
- 軟件架構(gòu):Python語(yǔ)言實(shí)現(xiàn)
- Hands-On Enterprise Automation with Python.
- Getting Started with NativeScript
- PHP編程基礎(chǔ)與實(shí)例教程
- Python3.5從零開始學(xué)
- Programming with CodeIgniterMVC
- Redmine Cookbook
- C Primer Plus(第6版)中文版【最新修訂版】
- 讀故事學(xué)編程:Python王國(guó)歷險(xiǎn)記
- Python深度學(xué)習(xí):基于PyTorch