RUNO Active Member Licensed User Longtime User Mar 22, 2020 #1 Why this error B4A Version: 9.50 Java Version: 8 Parsing code. (0.01s) Building folders structure. (0.04s) Compiling code. (0.10s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Generating R file. (0.00s) Compiling generated Java code. Error B4A line: 34 hc.Initialize(\ javac 1.8.0_231 src\b4a\example\main.java:348: error: cannot access ClientProtocolException _hc.Initialize("hc"); ^ class file for org.apache.http.client.ClientProtocolException not found
Why this error B4A Version: 9.50 Java Version: 8 Parsing code. (0.01s) Building folders structure. (0.04s) Compiling code. (0.10s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Generating R file. (0.00s) Compiling generated Java code. Error B4A line: 34 hc.Initialize(\ javac 1.8.0_231 src\b4a\example\main.java:348: error: cannot access ClientProtocolException _hc.Initialize("hc"); ^ class file for org.apache.http.client.ClientProtocolException not found
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2020 #2 1. 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 Upvote 0
1. 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