遇到了No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier怎么办

我们在android9的时候,使用httpClient的时候会出现这样的问题,如下图所示:

遇到了No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier怎么办_第1张图片

这个时候在网上找了很多方法,最后使用了另一种库来替换才解决了。

implementation 'cz.msebera.android:httpclient:4.+'

在添加新的三方库之后运行起来就毫无问题了。完美的解决了。

你可能感兴趣的:(android)