rwblinn Well-Known Member Licensed User Longtime User Oct 7, 2021 #1 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: Copy 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.
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: Copy 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 Oct 7, 2021 #2 When you add the Serializer file. Use Link Relative and not copy. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 8, 2021 #3 Shared Files should only be used for assets files. All shared modules should be in the main project folder and linked with a relative path. Upvote 0
Shared Files should only be used for assets files. All shared modules should be in the main project folder and linked with a relative path.
rwblinn Well-Known Member Licensed User Longtime User Oct 8, 2021 #4 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
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.