Android Question How to Use Resource Files in Precompiled Libraries

yshzsl

Member
I created a class using B4A and compiled it into a .jar library in Release mode, but the following issue occurred:

1. I used Typeface.FONTAWESOME, and when running the library, an error occurred: java.lang.RuntimeException: Font asset not found b4x_fontawesome.otf
2. I used icon files, but the icons could not be found at runtime

How can these issues be resolved?
Do the class libraries compiled by B4A not include resource files, and how can I use resource files?
 
Solution
Best option is to create a b4xlib instead of a jar. It will allow you to include additional files (FontAwesome will be added automatically).

Erel

B4X founder
Staff member
Licensed User
Longtime User
Best option is to create a b4xlib instead of a jar. It will allow you to include additional files (FontAwesome will be added automatically).

 
Upvote 0
Solution
Top