Android Question okHttpUtils - okHttpUtils2 transaction problem

LuigiTasca

Member
Licensed User
Longtime User
Goodmorning,
Yesterday I updated to newest version b4a (before it was 3.82).
When I run my code I get this error:


B4A Versione: 7.30
Analisi del Codice. (0.29s)
Compilazione del codice. (0.29s)
Compilazione del codice di layouts (0.06s)
Organizzazione Librerie. (0.00s)
Generazione file R. (0.06s)
Compilazione del codice Java prodotto. Error
B4A line: 10053
res = Response.GetString(\
javac 1.7.0_71
src\com\GenialFood\POS\order.java:11000: error: cannot access ParseException
_res = _response.GetString("UTF8");
^
class file for org.apache.http.ParseException not found


On this line:

Sub Host_Http_Token_ResponseError (Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
Dim res As String = Response.GetString("UTF8")


Before the update I used httputils2 and now I use okhttputils2.

If in Response Sub I use okHttpResponse instead of HttpResponse, b4a doesn't find the "getstring()" method.

where am I wrong?

Thanks in advance
 
Top