Absolutely, that's why I mentioned: "Is there a workaround without having to split the subs?"
I am also facing the issue in both debug and release modes.
There are many apps in the forum that can create barcodes far more efficiently than using this old app of mine.
Check the B4J forum for the same project. Somewhere in that thread someone has split some of the subs into multiple subs to get around the compiler error.
My question is this: how come the original library worked just fine and now the exact same code doesn't work?
If it wasn't for the fact that the library defaulted to the external folder, all would have been fine.
If the original library worked, why creating a b4xlib library won't work?
This library will create QR Codes (version 1 to 40), Aztec Codes (layer 1 to 11), PDF417, 2 of 5 Interleaved, EAN-13, EAN-8, Code 128, Code 39, Code 93, Code 11. Library files (*.xml and *.jar) inside the /Files folder. Copy them to your default library folder. It will create *.PNG files that...
www.b4x.com
Compiles perfectly - I have set the target sdk from 14 (original) to 22 and have no problem compiling it.
Scan QR code in image below - it should say "ICAB"
John what happens if you change the compilation mode from Release (obfuscated) to just Release?
I bet you the sub that B4A line: 1521 refers that is in your screenshot above is a HUGE sub, it wouldn't surprise me if it worked in just normal Release mode.
Just a logical guess, but I still think that breaking that sub down would fix the issue...
This library will create QR Codes (version 1 to 40), Aztec Codes (layer 1 to 11), PDF417, 2 of 5 Interleaved, EAN-13, EAN-8, Code 128, Code 39, Code 93, Code 11. Library files (*.xml and *.jar) inside the /Files folder. Copy them to your default library folder. It will create *.PNG files that...
So @iCAB
I too get the line error, I received the error in both Debug and Release (obfuscated) modes. It assembles and works perfect for me in Release mode.
Java has a size limit of 65535 characters for a method.
Public Sub DrawAztecCode is way too big, it's almost at 65535 characters in size, it needs splitting up. If I were you I would start with removing all this commented out text to see what happens...
QRGenerator is a class that generates QR codes. It is written in B4X and it is compatible with B4A, B4i and B4J. iPhone default camera app recognizing the QR code displayed in a B4A app: Can create codes made of up to 2953 bytes. It depends on XUI library and B4XCollections v1.50+. It uses...