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


Code:
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
 
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
oh yes it works thanks.

I forget to change the declarations to "OK".



Code:
dim hc as okHttpClient

and

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