cant generate apk
Error generating Yail for screen 5187895890608128_Screen1: : Input "B" doesn't exist on "logic_or". Please fix and try packaging again.
how can i solve
cant generate apk
Error generating Yail for screen 5187895890608128_Screen1: : Input "B" doesn't exist on "logic_or". Please fix and try packaging again.
how can i solve
Well, you have all the information you need to look in your project for where this might occur, and what is causing the problem.
I am facing a persistent issue when trying to build/package my project (AIA). This project was working perfectly fine a few months ago, but after opening it recently on the latest App Inventor version, I get the following error:
Error generating Yail for screen [Screen_Name]: Input "B" doesn't exist on "logic_or". Please fix and try packaging again
it seems you are comparing a number with a string?
P.S.
Sorry, my mistake, confused the Spinner.Selection with Spinner.SelectionIndex
Try temporarily removing/replacing that block.
Does it compile ?
I tried deleting the affected blocks from Screen1, but the same error message immediately appeared pointing to another screen. It seems that all logic_or blocks across the entire project have become corrupted/malformed.
I am not sure why this happened, especially since the project was working perfectly fine and compiling without issues just 3 months ago. It appears the blocks lost their internal definitions and now display an unexpected 'false' value inside them
I have an older version of the AIA file for the same project, saved 3 months ago. I tried importing it as a new project, but unfortunately, the exact same error persists. This confirms that the issue is related to how the current version of App Inventor handles/interprets older AIA files, specifically the logic_or blocks
or block looks different to mine (the false is not a block?):
is that the case with all your or blocks ?
Try replacing with a new or block ?
or blocks, is there one where you input a "B" ?I have observed that some logic_or blocks are actually fine and functioning correctly, while others are corrupted. Additionally, I tried dragging a new logic_or block from the components menu, and it works perfectly. However, the corrupted blocks remain broken and still show the same error.
Without a forensic examination of your project (@ewpatton - any takers ?) all I can suggest it a programme of corrupted block replacement. A pain I know, but may be the only way.
Try a Cleanup Blocks then check for rubble to make sure nothing has fallen out of its socket.
Do a right Click Download as png on suspect 'or' blocks and post them here so we may try them.
Export the aia and try to build it on the code server code.appinventor.mit.edu
I have also tested the project on the dedicated server (https://code.appinventor.mit.edu), and the exact same issue persists.
I used Ctrl + F in the Blocks Editor to search for the specific corrupted pattern "false or". I identified all the malformed blocks that were showing this embedded 'false' value and deleted them. After removing these corrupted blocks, the project compiled and packaged perfectly without any errors
Do you have a copy of the original project? The system is supposed to default to A = false or B = false if either input isn't present, but the fact that somehow in your screenshot A is missing and B is there is surprising to me. I'd like to see what the internals of the failing project look like.
This is a picture of the original blocks that were working 3 months ago.
This is a picture of the same block now, after 3 months. These damaged blocks appeared suddenly!!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.