OkHttpClient okHttpClient = new OkHttpClient.Builder().addInterceptor(new LoggingInterceptor()).build(); Retrofit retrofit = new Retrofit.Builder().baseUrl("") .addConverterFactory(GsonConverterFactory.create()) .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) .client(okHttpClient) .build();
补充的
最新推荐文章于 2022-10-05 16:08:54 发布