Android Question ScrollView2D compile problem

johnaaronrose

Active Member
Licensed User
Longtime User
I have an old project with the line "Dim sv2dPhoto As ScrollView2D" which the compiler objects to with the following:

B4A Version: 14.00
Parsing code. Error
Error parsing program.
Error description: Unknown type: scrollview2d
Are you missing a library reference?
Error occurred on line: 23 (B4XViewPage)
Dim sv2dPhoto As ScrollView2D

Tip: press Ctrl + R to export IDE state for AI assistants.

I have ScrollView2D.jar & ScrollView2D.xml in my Additional Libraries. What do I do?
 

DonManfred

Expert
Licensed User
Longtime User
I downloaded library and the example.

I DOES COMPILE.

Upload a small project showing the issue. Make SURE your REALLY have the jar and xml in the ADDITIONAL LIBRARY folder. Also make sure you have ticked the library in the library tab.
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
zip file of project attached. I'm rather rusty on B4A so I 'm not sure about the library being ticked in the library tab. The jar & xml files definitely are in the Additional Libraries folder.
 

Attachments

  • JewishWorld.zip
    38.9 KB · Views: 4
Upvote 0

teddybear

Well-Known Member
Licensed User
As DonManfred said, it works.
How your Library Manager and make sure it is checked.
603dcd66-5e99-4ac7-8358-b9c37916cd61.png
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
I don't see ScrollView2D as an entry in the Libraries: please see attached screenshots. One is from B4A showing Libraries where sv2d files should be an another is showing Libraries ticked. Other is from Nautilus File Manager showing ScrollView2D.jar & ScrollView2D.xml: they are both from 2022. Is it because these files are so old?
 

Attachments

  • Screenshot from 2026-09-06 10-45-21.png
    Screenshot from 2026-09-06 10-45-21.png
    133.9 KB · Views: 14
  • Screenshot from 2026-09-06 10-48-13.png
    Screenshot from 2026-09-06 10-48-13.png
    135.5 KB · Views: 13
  • Screenshot from 2026-09-06 10-51-13.png
    Screenshot from 2026-09-06 10-51-13.png
    137.2 KB · Views: 13
Upvote 0

teddybear

Well-Known Member
Licensed User
What is your Paths configuration? From your pic #2, it seems to be in Home/B4X_Projects

5c3a6f56-c9c1-4827-9f93-66cd0553f80e.png
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
I have my Projects in /home/john/B4XProjects wher the Aiitional Libraries also reside. 've just changed the Additional Libraries location as per the attached screenshot to conform with the recommended structure i.e. all jar & xml files in a sub-folder of B4A. Still same problem on compilation.
 

Attachments

  • Screenshot from 2026-09-06 12-40-16.png
    Screenshot from 2026-09-06 12-40-16.png
    10.1 KB · Views: 7
Upvote 0
Top