Android Question B4XDaisy Libraries?

mcqueccu

Expert
Licensed User
Longtime User
I have seen @Mashiane posting new libraries everyday, but when I visit the thread, I do not see any file to download?

So far I have been able to download B4XDaisyUikit from Github, and link to google drive as well, buy what about the others?

Can someone direct me on how to get them?
1788924269768.png
 

josejad

Expert
Licensed User
Longtime User
Hi mcqueccu, from the README.md

### 2. Install the Library

Download the latest `B4XDaisyUIKit.b4xlib` from:

- **GitHub Releases** -> [Sithaso-B4XDaisy-UIKit Releases](https://github.com/Mashiane/Sithaso-B4XDaisy-UIKit---Native-Android-Components-inspired-by-DaisyUI/releases)
- **Google Drive Archive** -> [B4XDaisyUIKit Downloads](https://drive.google.com/drive/folders/1Ccr4SiPYugPCsN0juwwwqAZGewMW-xZj?usp=sharing)

Copy `B4XDaisyUIKit.b4xlib` into your **Additional Libraries** folder (Tools -> Configure Paths).
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Have you copied the rest of the necessary dependencies?
anyway, let's wait for @Mashiane answer...

1788945306046.png
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Greetings, thanks for the enquiry.

The files in question are inside the b4xlib. Have opened it in my pc and all is well.

1788955489593.png


However, I have just downloaded the file from github, for whatever reason, it corrupted, I will re-upload to gibhub/google drive.

Also, when you check, please open the dist.b4a project from your download, if everything is well, just check if any of the libraries listed show a '00" version number as at times the IDE library registration reports such errors when something goes wrong.

1788955681819.png
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
if any of the libraries listed show a '00"
You're rigth. I've updated B4XDaisyUIKit to 0.95, and now I get the error:

Unknown type: bitmapcreatoreffects<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyAvatar)&lt;/i&gt;

1788963557712.png


I've downloaded again the lib, but the same error ocurrs
 
Upvote 0

mcqueccu

Expert
Licensed User
Longtime User
1788963629098.png



Error log:
Unknown type: httpjob<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPocketBase)&lt;/i&gt;
Unknown type: okhttpclient<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPocketBase)&lt;/i&gt;
Unknown type: configurator<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPDFView)&lt;/i&gt;
Unknown type: pdfview<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPDFView)&lt;/i&gt;
Unknown type: pdfiumcore<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPDFView)&lt;/i&gt;
Unknown type: ac_timepicker<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyInput)&lt;/i&gt;
Unknown type: ac_datepicker<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyInput)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: resultset<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: uri<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: contentresolver<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: contentchooser<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: contentchooser<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: contentchooser<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: resultset<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: uri<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: contentresolver<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: fileprovider<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyDivision)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyChatBubble)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyCardTitle)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyCard)&lt;/i&gt;
Unknown type: bitmapcreatoreffects<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyAvatar)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyAlert)&lt;/i&gt;
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
View attachment 173511


Error log:
Unknown type: httpjob<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPocketBase)&lt;/i&gt;
Unknown type: okhttpclient<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPocketBase)&lt;/i&gt;
Unknown type: configurator<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPDFView)&lt;/i&gt;
Unknown type: pdfview<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPDFView)&lt;/i&gt;
Unknown type: pdfiumcore<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyPDFView)&lt;/i&gt;
Unknown type: ac_timepicker<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyInput)&lt;/i&gt;
Unknown type: ac_datepicker<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyInput)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: resultset<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: uri<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: contentresolver<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: contentchooser<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileInput)&lt;/i&gt;
Unknown type: contentchooser<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: contentchooser<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: resultset<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: uri<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: contentresolver<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: fileprovider<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyFileHandler)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyDivision)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyChatBubble)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyCardTitle)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyCard)&lt;/i&gt;
Unknown type: bitmapcreatoreffects<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyAvatar)&lt;/i&gt;
Unknown type: stringutils<br />Are you missing a library reference? &lt;i&gt;(B4XDaisyUIKit.B4XDaisyAlert)&lt;/i&gt;
Please see #5, you need to include all the libraries in that list otherwise your app wont work as the b4xlib is all encompassing, those are the dependencies.

However, you can extract from the b4xlib only the class modules you want to use for the app. Its MIT and open-source after all.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Upvote 0

mcqueccu

Expert
Licensed User
Longtime User
I have redownloaded the B4XDaisyUIKit version 0.95, refreshed my libraries and yet, I the missing libraries issue exist. I moved from B4A to B4J, Same issue.

I extracted the classes from the B4XLib, added it to the project Manually but I still have errors.

Missing Classes added:
1. B4XDaisyColorWheel
2. B4XDaisyCountdown
3. B4XDaisyPicker
4. B4XDaisyCard

B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
    
    ' In B4XPage_Created
    Dim card As B4XDaisyCard
    card.Initialize(Me, "card")
    card.AddToParent(Root, 16dip, 16dip, Root.Width - 32dip, 180dip)
    card.Title = "Stock Count"
    card.Variant = "neutral"
End Sub

Libraries
1789024269151.png


Log:

B4X:
B4XDaisyPicker - 981: Unknown type: scrollview<br />Are you missing a library reference?
B4XDaisyColorWheel - 113: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyColorWheel - 104: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyColorWheel - 98: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyColorWheel - 91: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyColorWheel - 70: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyColorWheel - 861: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyCountdown - 222: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyCountdown - 239: Unknown type: panel<br />Are you missing a library reference?
B4XDaisyPicker - 40: Unknown type: scrollview<br />Are you missing a library reference?
 

Attachments

  • hello.zip
    39 KB · Views: 19
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Let's run a test.

Assumptions. You have copied the libraries from github to your b4a additional libraries folder.

Open the dist.b4a project that comes with your download and run it in b4a.

Answer me this. Does it compile and does it have errors?

Also to avoid any confusion, this library is not built for anything else except b4a.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Maybe I'm wrong but, is not necessary check the downloaded libraries too? (Pdfium, shinebutton, ac_nativedialogs, ... etc?)
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Maybe I'm wrong but, is not necessary check the downloaded libraries too? (Pdfium, shinebutton, ac_nativedialogs, ... etc?)
Thanks, I'm not really sure why the OP is experiencing this thus wanting to establish if the dist.b4a project runs or not first.

That b4a project has every project dependency checked. Perhaps with that working it will help us drill down the issue.

For now just want to tick off with the initial example that comes with the project and we can take it from there.
 
Upvote 0

mcqueccu

Expert
Licensed User
Longtime User
Running the B4XDaisyUiKitDist.B4A as it from the Github, all the Errors are gone, but I have some warnings and compilation errors.

Compilation error:
B4X:
B4A Version: 14.00
Parsing code.    (3.19s)
    Java Version: 19
Building folders structure.    (0.26s)
Compiling code.    (5.04s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.06s)
    (AndroidX SDK)
Compiling resources    (4.66s)
Linking resources    (1.21s)
    build tools: 36.1.0, android jar: android-36
Compiling debugger engine code.    (20.72s)
Compiling generated Java code.    Error
B4A line: 237
nativeBtn.ShapeBitmap = bmp
src\com\sithaso\daisyuikit\b4xdaisyshinebutton.java:740: error: cannot find symbol
__ref._nativebtn /*shinebuttonwrapper.shinebuttonWrapper*/ .setShapeBitmap((android.graphics.Bitmap)(_bmp.getObject()));
                                                           ^
  symbol:   method setShapeBitmap(Bitmap)
  location: variable _nativebtn of type shinebuttonWrapper

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

Warnings in the Log

B4X:
B4XPageAura - 229: Empty Catch block. You should at least add Log(LastException.Message). (warning #19)
B4XPageAura - 194: Empty Catch block. You should at least add Log(LastException.Message). (warning #19)
B4XPageMediaPicker - 163: The following value misses screen units ('dip' or %x / %y): 1920. (warning #6)
B4XPageMediaPicker - 163: The following value misses screen units ('dip' or %x / %y): 1920. (warning #6)
B4XPageSweetAlertInputs - 43: Return type (in Sub signature) should be set explicitly. (warning #3)
B4XPageTagSphere - 250: Empty Catch block. You should at least add Log(LastException.Message). (warning #19)
B4XPageMediaPicker - 14: Variable 'cardPreview' is never assigned any value. (warning #10)
B4XPageRadialProgress - 8: Variable 'Timer1' is never assigned any value. (warning #10)
Library 'Geocoder' is not used. (warning #32)
The recommended value for android:targetSdkVersion is 36 (manifest editor). (warning #31)

1789067886863.png
 
Last edited:
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
all the Errors are gone
Great stuff..

build tools: 36.1.0, android jar: android-36
I am still using 35, so i will check with 36 at some stage. Still trying to figure this EdgeToEdge stuff out and its not a priority for me right now.

1789070574907.png


nativeBtn.ShapeBitmap = bmp src\com\sithaso\daisyuikit\b4xdaisyshinebutton.java:740: error: cannot find symbol __ref._nativebtn /*shinebuttonwrapper.shinebuttonWrapper*/ .setShapeBitmap((android.graphics.Bitmap)(_bmp.getObject())); ^ symbol: method setShapeBitmap(Bitmap) location: variable _nativebtn of type shinebuttonWrapper
I cannot reproduce this with my current deployment, will investigate further.
 
Upvote 0
Top