android studio,Gradle配置: RxJava失败 Failed to resolve: io.reactivex:rxjava:1.1.2

Rxjava version2.X之后:

To allow having RxJava 1.x and RxJava 2.x side-by-side, RxJava 2.x is under the maven coordinates io.reactivex.rxjava2:rxjava:2.x.y and classes are accessible below io.reactivex.

版本1.X:io.reactivex

版本2.X:io.reactivex.rxjava2:rxjava:2.x.y

详情见;https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0

猜你喜欢

转载自blog.csdn.net/qq_33360506/article/details/81712314
今日推荐