B4J Question Porting B4a to B4i compiler error

Kevin Hartin

Active Member
Licensed User
I am porting a B4a POS app to B4i and am getting the following compiler error;
Error:
B4J Version: 9.10
Parsing code.    (0.27s)
    Java Version: 11
Building folders structure.    (0.03s)
Running custom action.    (0.03s)
Compiling code.    (0.20s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
Compiling generated Java code.    Error
src\b4j\example\main.java:32: error: cannot find symbol
            anywheresoftware.b4a.keywords.Common.setDensity(javafx.stage.Screen.getPrimary().getDpi());
                                                ^
  symbol:   method setDensity(double)
  location: class Common
1 error

javac 11.0.1
I assumed it was because I was using a B4a library, but are pretty sure that all of them are OK.
1634411972247.png

I am using Erels QRgenerator class, which I have totally removed and still got the same error.

I am also using the aGrahams EscPosPrinter class, modified for the serial connection, which I cannot remove as it is a fundamental part of the app. I suspected the error had something to do with image manipulation prior to printing so I commented out that code to no avail.

Any help would be very much appreciated.

Thanks,
Kev
 

Kevin Hartin

Active Member
Licensed User
How did B4A Core library reached your additional libraries folder?
I have no idea how they got there, but now that they have been moved to the B4a libraries, things are working fine. What are the current latest versions, sizes and dates?

Thanks,
Kev
 
Upvote 0
Top