Android Question Compiling Error

DevendraGodawatta

New Member
Licensed User
I purchased B4A today and started coding i have used this before in another company i worked, I am getting the Below Error from the compiler

B4A version: 6.31
Parsing code. (0.10s)
Compiling code. (0.36s)
Compiling layouts code. (0.05s)
Organizing libraries. (0.01s)
Generating R file. (0.07s)
Compiling debugger engine code. (2.18s)
Compiling generated Java code. Error
B4A line: 4469
Msgbox(\
javac 1.8.0_112
src\Inventory\Tracker\main.java:8799: error: cannot access ParseException
anywheresoftware.b4a.keywords.Common.Msgbox("Error In Syncronization : "+_response.GetString("utf8")+" "+BA.NumberToString(_statuscode),"Inventory Tracker",mostCurrent.activityBA);
^
class file for org.apache.http.ParseException not found

Can someone help me.
 

DonManfred

Expert
Licensed User
Longtime User
Welcome!

Replace http lib (and httputils) with okHTTP

From what you posted i an not see your code.
But i guess you are using one older Example which is using httputils lib maybe.

With Android 6 the old http has been discarded. To get this work on android 6+ you need to use the new okhttp (and okhttputils) lib.

You also can Export your project as zip from within the IDE (File->Export as zip) and upload this zip here.

Seeing your code is easier to help then just an error.

But in this case you can fix it using another lib.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…