B4J Question [B4XPages] [SOLVED] Shared Folder Usage

rwblinn

Well-Known Member
Licensed User
Longtime User
Working on a B4XPages project which uses the B4RSerializer.bas in B4J and B4A.

Q: Not clear how to add the B4RSerializer.bas to the B4J and B4A project. See next with the B4J log messages.

Project Folder Structure
Projectname\B4A\
Projectname\B4J\
Projectname\Shared Files\B4RSerializer.bas
Projectname\B4XMainPage.bas

B4J Project Action taken
Added the B4RSerializer to the B4J project with relative path to Projectname\Shared Files\B4RSerializer.bas.
After adding, the B4RSerializer.bas is copied to B4J project folder but also the B4J project folder - not sure why = resulting in B4J log info:
B4X:
File 'B4RSerializator.bas' in Files folder was not added to the Files tab.
You should either delete it or add it to the project.
You can choose Tools - Clean unused files. (warning #14)
File 'B4RSerializator.bas' is not used. (warning #15)

B4A Project not started yet.
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
When you add the Serializer file. Use Link Relative and not copy.

1633628864098.png
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
SOLVED
Next action taken for the B4J project:
Moved the file B4RSerializer.bas to the main project folder.
Projectname\B4A\
Projectname\B4J\
Projectname\B4XMainPage.bas
Projectname\B4RSerializer.bas

Added the file to the B4J project with relative path (which did previous but then with wrong folder) and deleted the B4RSerializer from the B4J Files Folder.

Thanks for guidance.
 
Upvote 0
Top