您的位置:首页 > 编程语言 > Java开发

RxJava2+Retrofit2导包(新)

2017-10-18 17:36 176 查看

RxJava2+Retrofit2导包(新)

compile "io.reactivex.rxjava2:rxjava:2.1.1"
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//配合rxjava2使用
compile 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
//建议导2.7版本-(稳定功能多)
compile 'com.google.code.gson:gson:2.7'


kotlin下的可以导

//将上面的rxbinding换成这个其实不换也可以因为kotlin兼容java
compile 'com.jakewharton.rxbinding2:rxbinding-kotlin:2.0.0'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  rxjava2 retrofit2