I am getting this error while creating app

as title

App Inventor is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating style xml
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 5.148 seconds
________Compiling source files
(compiling appinventor/ai_wefong2sheng/QRCODE/Screen1.yail to appinventor.ai_wefong2sheng.QRCODE.Screen1)
ERROR: appinventor/ai_wefong2sheng/QRCODE/Screen1.yail line 164: evaluating syntax transformer 'if' threw java.lang.StackOverflowError
Kawa compile time: 9.937 seconds

this is my app
QRCODE.aia (749.5 KB)

Probably do too many if statements (300+)



maybe it's because too many if branch.
You can try to make a long list of all the locations and a another list of εΊ—θ™Ÿ, and use "for each" block to check which location is which εΊ—θ™Ÿ


I tried segmenting (50 times "if" statement) and connect each together. It's fine

To avoid this, learn to encode all those conditions into a table.
Load the table from the Media folder ,
convert it from CSV to a list of lists (table)
and loop through it to get your successive test limits.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.