Android Question Error with TaskIdToJob

johnaaronrose

Active Member
Licensed User
Longtime User
On a very old B4A project of mine (converted to B4XPages), I have the Internal Library entries for OkHttp & OkHttpUtils2 checked. However, compiling gives an "Error: not found" for TaskIdToJob in the code below. What do I need to do e.g. install extra jar & xml files?

TaskIdToJob error:
Dim j As HttpJob

    j.Initialize("", Me)

    j.Download(url)

    Dim TaskToJob As Map = HttpUtils2Service.TaskIdToJob
 

teddybear

Well-Known Member
Licensed User
On a very old B4A project of mine (converted to B4XPages), I have the Internal Library entries for OkHttp & OkHttpUtils2 checked. However, compiling gives an "Error: not found" for TaskIdToJob in the code below. What do I need to do e.g. install extra jar & xml files?

TaskIdToJob error:
Dim j As HttpJob

    j.Initialize("", Me)

    j.Download(url)

    Dim TaskToJob As Map = HttpUtils2Service.TaskIdToJob
You need to add HU2_PUBLIC in Conditional Symbols.
ff56b623-35b6-4453-9381-799ee495ea1c.png
 
Upvote 1
Top