Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htmlunit When used in Android, an exception is thrown #72

Closed
0501fei opened this issue Aug 20, 2019 · 5 comments
Closed

htmlunit When used in Android, an exception is thrown #72

0501fei opened this issue Aug 20, 2019 · 5 comments

Comments

@0501fei
Copy link

0501fei commented Aug 20, 2019

htmlunit When used in Android, an exception is thrown:

No static field INSTANCE of 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.jar:classes2.dex)

The reason is that httpclient is not available in android。

@rbri
Copy link
Member

rbri commented Aug 21, 2019

Looks like you have the wrong version of the httpclient in your classpath.

@0501fei
Copy link
Author

0501fei commented Aug 22, 2019

Yes, thank you. The reason is found.

@rbri
Copy link
Member

rbri commented Aug 22, 2019

Thanks for the feedback

@rbri rbri closed this as completed Aug 22, 2019
@palafix
Copy link

palafix commented Nov 23, 2019

Hey, can you please tell what the reason is what helped you?
I have the same error but can't find what the problem is.

@Shabinder
Copy link

Getting Same Error , please tell how to fix this version issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@rbri @palafix @0501fei @Shabinder and others