Android 解决Bmob包和gson、okhttp、retrofit、okio、rxjava、rxandroid包冲突的问题

    xiaoxiao2025-01-09  13

    有以下这几个包:

    com.google.code.gson:gson com.squareup.retrofit2:retrofit com.squareup.okhttp3:okhttp com.squareup.okio:okio io.reactivex:rxjava io.reactivex:rxandroid

     

    解决:

    implementation ('com.squareup.retrofit2:converter-gson:2.2.0'){ exclude group: 'com.google.code.gson' exclude group: 'com.squareup.okhttp3' }

     

    implementation ('com.squareup.retrofit2:retrofit:2.2.0'){ exclude group: 'com.squareup.okio' } implementation ('com.squareup.okhttp3:logging-interceptor:3.4.2'){ exclude group: 'com.squareup.okhttp3' exclude group: 'com.squareup.okio' } implementation ('com.squareup.retrofit2:adapter-rxjava:2.2.0'){ exclude module:'rxjava' exclude group: 'io.reactivex' exclude group: 'com.squareup.okhttp3' } implementation ('cn.bmob.android:bmob-sdk:3.6.2'){ exclude group: 'io.reactivex:rxandroid' exclude group: 'io.reactivex:rxjava' exclude group: 'com.squareup.okio' exclude group: 'com.squareup.okhttp3' }

     

    最新回复(0)