rxjava2 retrofit2 配置

来源:互联网 发布:c语言的库函数 编辑:程序博客网 时间:2024/06/14 15:28
apply plugin: 'com.android.application'
android {    compileSdkVersion 25    buildToolsVersion "25.0.2"    defaultConfig {        applicationId "com.example.japser.myapplication"        minSdkVersion 15        targetSdkVersion 25        versionCode 1        versionName "1.0"        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"    }    buildTypes {        release {            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'        }    }}dependencies {    compile fileTree(include: ['*.jar'], dir: 'libs')    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {        exclude group: 'com.android.support', module: 'support-annotations'    })    compile 'com.android.support:appcompat-v7:25.3.1'    testCompile 'junit:junit:4.12'    compile 'com.contrarywind:Android-PickerView:3.2.2'    compile 'com.github.lecho:hellocharts-library:1.5.8@aar'    compile 'com.android.support:recyclerview-v7:23.4.0'    //添加下面所有的部分    //rajava2    compile 'io.reactivex.rxjava2:rxjava:2.0.1'    compile 'io.reactivex.rxjava2:rxandroid:2.0.1'    //retrofit    compile 'com.squareup.retrofit2:retrofit:2.1.0'    //Gson converter    compile 'com.squareup.retrofit2:converter-gson:2.1.0'    //RxJava2 Adapter    compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'    //okhttp    compile 'com.squareup.okhttp3:okhttp:3.4.1'    compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'}
                                             
0 0
原创粉丝点击