Runtime Execption java.lang.NoClassDefFoundError: retrofit2.Platform in Android

后端 未结 3 970
小鲜肉
小鲜肉 2021-01-13 09:33

i am using Rtofit to handling the Serverside Data from Mobile After Implementing the Retrofit I am Getting the below Exception any know about this issue tell me where i am d

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 09:54

    Try change the okhttp to okhttp3

    compile 'com.squareup.okhttp3:okhttp:3.2.0'
    compile 'com.squareup.okhttp3:okhttp-urlconnection:3.2.0'
    

    As retrofit2 internally using okhttp3.

    Try build and sync gradle.

提交回复
热议问题