Home > Mobile > Java. Lang. NoSuchFieldError: No field, the INSTANCE of the type Lorg/apache/HTTP/conn/SSL/
Java. Lang. NoSuchFieldError: No field, the INSTANCE of the type Lorg/apache/HTTP/conn/SSL/
Time:02-04
In the Android project compile error: Process: com. Discovery. Ocrserver, PID: 9769 Java. Lang. NoSuchFieldError: No field, the INSTANCE of the type Lorg/apache/HTTP/conn/SSL/AllowAllHostnameVerifier; In class, Lorg/apache/HTTP/conn/SSL/AllowAllHostnameVerifier; Or its superclasses (declaration of 'org. Apache. HTTP. Conn. SSL. AllowAllHostnameVerifier' appears in/system/framework/framework. The jar: classes2. Dex) The at org. Apache. HTTP. Conn. SSL. SSLConnectionSocketFactory. & lt; clinit> (SSLConnectionSocketFactory. Java: 144)
Said the class AllowAllHostnameVerifier no INSTANCE But I introduce jars: httpclient - 4.5.2 AllowAllHostnameVerifier inside there is a INSTANCE;
Finally found to be due to I call AllowAllHostnameVerifier when the class is invoked automatically Android API26 of AllowAllHostnameVerifier,
This is how to return a responsibility? Why jars and the inside of the API have just call the inside of the API? What would need to change?