Android Question ParseException error

Britt Paty

New Member
Licensed User
Longtime User
Hi, I'm getting a ParseException error in B4A during compile. Anybody have any ideas why?

B4A version: 5.80
Parsing code. (0.02s)
Compiling code. (0.11s)
Compiling layouts code. (0.00s)
Generating R file. (0.04s)
Compiling debugger engine code. (1.58s)
Compiling generated Java code. Error
B4A line: 219
Log(response.GetString(\
javac 1.8.0_73
src\b4a\example\b4aserverservice.java:559: error: cannot access ParseException
anywheresoftware.b4a.keywords.Common.Log(_response.GetString("UTF8"));
^
class file for org.apache.http.ParseException not found
 

DonManfred

Expert
Licensed User
Longtime User
You are using Android.jar from API 23?

Replace http and httputils with okhttp and okhttputils.
 
Upvote 0

carlosgg

New Member
Licensed User
hi
i get this error
B4A version: 5.80
Parsing code. (0.31s)
Compiling code. (0.33s)
Compiling layouts code. (0.12s)
Generating R file. (0.27s)
Compiling generated Java code. Error
B4A line: 67
Log(Response.GetString(\
javac 1.8.0_71
src\com\htsoft\youtubedownload\httputils2service_new.java:149: error: cannot access ParseException
anywheresoftware.b4a.keywords.Common.Log(_response.GetString("UTF8"));
^
class file for org.apache.http.ParseException not found

i have changed the libraries like on previous post but i get this error then
B4A version: 5.80
Parsing code. Error
Error parsing program.
Error description: Unknown type: httprequest
Are you missing a library reference?
Occurred on line: 10 (HttpJob_new)
Private req As HttpRequest

can anyone give help please?
 
Upvote 0
Top