B4A Question Cannot access ClientProtocolException - CARTHO    
Dec 28, 2015 generated Java code. Error
B4A line: 485
HttpClient1.Initialize(\
javac 1.7.0_45
src\B4A\UserInterfaceMenu\main.java:759: error: cannot access ClientProtocolException
_httpclient1.Initialize....ClientProtocolException not found...
link: Are you using android 6?
Have you changed your httputils to the new okHTTPUTILS?...
link: Are you using android 6?
Have you changes your httputils to the new okHTTPUTILS?
Thank you!
I found the OKHttpUtils and downloaded ...
B4A Question cannot access ClientProtocolException since B4A Version 8.0 - birnesoft (first post)    
Apr 18, 2018oh yes it works thanks.
I forget to change the declarations to "OK".
dim hc as okHttpClient
and
Sub hc_ResponseSuccess (Response As OkHttpResponse, TaskId As Int)...
link: 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...
link: Code. Error
hc.Initialize(\
main.java:570: error: cannot access ClientProtocolException
mostCurrent...
B4A Question cannot access ClientProtocolException - ihabsharaf (first post)    
Mar 10, 2016its working thank you erel...
link: You have two options:
1. Switch to OkHttp and OkHttpUtils2 instead of Http / HttpUtils2.
2. Use an o...
link: Upload your project (File-Export as zip)
Which API are you using? android.jar...
link: the same problem...
B4A Question Http Client ClientProtocolException not found - imgsimonebiliato    
Jun 2, 2016 I have this.
main.java:360: error: cannot access ClientProtocolException
_hc.Initialize("hc");
^
class file for org.apache.http.client.ClientProtocolException not found...
link:
src\flm\b4a\floatwin\main.java:503: error: cannot access ClientProtocolException
_hc_file.Initialize("hc"...
link: access ClientProtocolException
_hc_file.Initialize("hc");
^
class...
B4A Tutorial Accessing third party Jar with #Additionaljar and JavaObject - Picasso - Erel    
Jan 19, 2026   
(27 reactions) the event cannot be raised (activity is paused for example). In this case we return Null.
The event sub...
B4A Question HttpClient error - Erel (first post)    
Mar 22, 20201. Upgrade to B4A v9.80. It is free.
2. Remove HttpUtils2 and use OkHttpUtils2.
Note that this question was asked many many times and you can find the answer with a simple search: https://www.b4x.com/android/forum/pages/results/?query=cannot+access+ClientProtocolException...
link: ClientProtocolException
_hc.Initialize("hc");
^
class file for org.apache.http...
B4A Question Expectation Failed - Fabio Campanella (first post)    
Sep 14, 2017When Compile HttpUtils2Sercivice I've received this error:
:(
src\it\digitalup\icommlab\myhttputils2service.java:247: error: cannot access ClientProtocolException
_hc.Initialize("hc");
^
class file for org.apache.http.client.ClientProtocolException not found...
B4A Question HTTP on API19, API23 and API28 - warwound    
Aug 11, 2022 compile with the error:
src\mypackagename\httptest\main.java:535: error: cannot access ClientProtocolException
_httpclient1.Initialize("HttpClient1");
^
class file for org.apache.http.client.ClientProtocolException not found
Seems like I'd have to compile....
On an api 19 device I now see the error:
Caused by: java.lang.IllegalStateException: Expected Android... but not on api 28 where I see the error:
Caused by: java.lang.ClassNotFoundException: Didn't...
B4A Class ExternalStorage - Access SD cards and USB sticks - Erel    
Nov 11, 2020   
(62 reactions) access the secondary storage (File.DirRootExternal). This becomes relevant with newer versions of Android that restrict direct access.
It has nothing to do with runtime permissions.
You can use RuntimePermissions.GetAllSafeDirsExternal to directly access a specific folder on the SD card.
You can use RuntimePermissions.GetSafeDirDefaultExternal to directly access a specific folder on the secondary... possible to directly access external storages.
The only way to access these storages is through...
B4A Question class file for org.apache.http.client.ClientProtocolException not found - Marco Maria Vilucchi    
Apr 19, 2018Hi 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... vers 2.50
the statement is:
Dim hc As HttpClient
hc.Initialize("hc")
Thanks...
Page: 1  
2  
3  
4  
5  
6  
7