将服务器API从HTTP/1.1
切换到HTTP/2
后无法解析响应
val retrofit = Retrofit.Builder()
.baseUrl(BuildConfig.BASE_URL + BuildConfig.API_VERSION)
.addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.client(okHttpClient)
.build()
此处引发异常:val response = chain.proceed(request)
okhttp_version = '3.14.1'
retrofit_version = '2.5.0'