fifiddu70 Well-Known Member Licensed User Longtime User Jan 13, 2022 #1 in my projects i have this error when launch debug mode: Analisi del Codice. (0.13s) Java Versione: 11 Building folders structure. (0.02s) Compilazione del codice. (0.27s) Compilazione del codice di layouts (0.00s) Organizzazione Librerie. (0.00s) (AndroidX SDK) Compilazione risorse (0.06s) Collegamento risorse (0.39s) Compilazione del codice debugger. Error B4A line: 1177 End Sub shell\src\com\partannasoftware\comande_W3S\main_subs_0.java:1980: error: code too large for try statement catch (Exception e) { ^ 1 error
in my projects i have this error when launch debug mode: Analisi del Codice. (0.13s) Java Versione: 11 Building folders structure. (0.02s) Compilazione del codice. (0.27s) Compilazione del codice di layouts (0.00s) Organizzazione Librerie. (0.00s) (AndroidX SDK) Compilazione risorse (0.06s) Collegamento risorse (0.39s) Compilazione del codice debugger. Error B4A line: 1177 End Sub shell\src\com\partannasoftware\comande_W3S\main_subs_0.java:1980: error: code too large for try statement catch (Exception e) { ^ 1 error
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2022 #2 There are many discussions about this error: https://www.b4x.com/android/forum/pages/results/?query=error:+code+too+large+for+try+statement It happens in debug mode because the debugger needs to inject a lot of code to your code and it hits a limit of the Java compiler. The solution is to split the huge sub into several subs. It will also make it more maintainable. Upvote 0
There are many discussions about this error: https://www.b4x.com/android/forum/pages/results/?query=error:+code+too+large+for+try+statement It happens in debug mode because the debugger needs to inject a lot of code to your code and it hits a limit of the Java compiler. The solution is to split the huge sub into several subs. It will also make it more maintainable.
baxiprince Member Licensed User Longtime User Nov 11, 2022 #3 Using the old version of the tuner can solve the problem Upvote 0