- 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.
- Dependency Injection in .NET Core 2.0
- Java持續(xù)交付
- UML 基礎(chǔ)與 Rose 建模案例(第3版)
- Android系統(tǒng)原理及開發(fā)要點詳解
- 動手學(xué)數(shù)據(jù)結(jié)構(gòu)與算法
- Learning Modular Java Programming
- Building Business Websites with Squarespace 7(Second Edition)
- .NET 4.0面向?qū)ο缶幊搪劊簯?yīng)用篇
- 從零開始:C語言快速入門教程
- Responsive Web Design with jQuery
- 陪孩子像搭積木一樣學(xué)編程:Python真好玩+Scratch趣味編程(全2冊)
- Hands-On Artificial Intelligence with Unreal Engine
- JSP編程教程
- 谷歌JAX深度學(xué)習(xí)從零開始學(xué)
- Java入門經(jīng)典