In the latest version of Retrofit 2.0, you must import the latest version:
compile 'com.squareup.retrofit2:retrofit:2.0.0' compile 'com.squareup.retrofit2:converter-gson:2.0.0' compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0'
Be careful, call baseUrl() , in version 2.0, this should be the end of "/", and in this method you would start the trag with "/"
@POST("classes/info") Call<ContactBean> insertInfo(@Body ContactBean bean);
And you can see Retrofit to get more information! Hope to help!
joe Mar 22 '16 at 10:20 2016-03-22 10:20
source share