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?
 

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: 5
Upvote 0

teddybear

Well-Known Member
Licensed User
As DonManfred said, it works.
How your Library Manager and make sure it is checked.
 
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
    133.9 KB · Views: 14
  • Screenshot from 2026-09-06 10-48-13.png
    135.5 KB · Views: 14
  • Screenshot from 2026-09-06 10-51-13.png
    137.2 KB · Views: 14
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

 
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
    10.1 KB · Views: 7
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…