Android Question class file for org.apache.http.client.ClientProtocolException not found

Marco Maria Vilucchi

Active Member
Licensed User
Longtime User
Hi all,
I have this error.

In this thresd: https://www.b4x.com/android/forum/threads/cannot-access-clientprotocolexception.64434/
Erel saw:

You have two options:
1. Switch to OkHttp and OkHttpUtils2 instead of Http / HttpUtils2.
2. Use an older version of android.jar.

If I uncheck HTTP then HttpClientis not recognized
I don't konw how to do for android.jar version.

I don't understand what am I do?



I have B4A 7.30
OKHttpUtils2 Vers 2.61
OKHttp vers 1.20
HTTP vers 1.36
HttpUtils2 vers 2.50

the statement is:

Dim hc As HttpClient
hc.Initialize("hc")

Thanks
Marco
 
Last edited:
Top