Android Question Error compiling DownloadService

klingon467

Member
Licensed User
Longtime User
Hi i have problems for compiling "DownloadServices" example ia have add HTTP libraires and core...
but i recevied this message:

it will block here:
B4X:
Sub Service_Create
    HC.Initialize("HC")
    Notification1.Initialize
    Notification1.Icon = "icon" 'use the application icon file for the notification
    Notification1.Vibrate = False
End Sub


B4A version 4.30
Parsing code. 0.01
Compiling code. 0.04
Compiling layouts code. 0.02
Generating R file. 0.08
Compiling generated Java code. Error
B4A line: 20
HC.Initialize(\
javac 1.8.0_60
src\anywheresoftware\b4a\samples\downloadservice\downloadservice.java:191: error: cannot access ClientProtocolException
_hc.Initialize("HC");
^
class file for org.apache.http.client.ClientProtocolException not found
where is the error?

thanks
 

DonManfred

Expert
Licensed User
Longtime User
If you are using android 23 (6) you need to update your httputils libraries with the new okhttp
 
Upvote 0
Top