First time using httpOk and retrofit. I m using the code of another employee, but can t make it work, even after going into internet to check what is the potential error.
public static Retrofit getBsfBuilder() {
HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();
retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.client(client)
.build();
return retrofit;
}
随着上述《联邦公报》的宣布,以及《联邦公报》的改版。
错误
E/AndroidRuntime: FATAL EXCEPTION: main Process: , PID: 5305 java.lang.ExceptionInInitializerError