Android Question cannot access ClientProtocolException since B4A Version 8.0

birnesoft

Active Member
Licensed User
Longtime User
since Version 8.0 I get an error

but I use okhttpUtils
android 27


B4X:
Kompiliere generierten Java Code.    Error
hc.Initialize(\
main.java:570: error: cannot access ClientProtocolException
mostCurrent._hc.Initialize("hc");
                          ^
  class file for org.apache.http.client.ClientProtocolException not found
1 error
 

DonManfred

Expert
Licensed User
Longtime User
Update to okhttp and okhttputils

but I use okhttpUtils
Based on the error you are not.

You are using the old http and/or httputils
 
Upvote 0

birnesoft

Active Member
Licensed User
Longtime User
oh yes it works thanks.

I forget to change the declarations to "OK".



B4X:
dim hc as okHttpClient

and

Sub hc_ResponseSuccess (Response As OkHttpResponse, TaskId As Int)
 
Upvote 0
Top