Error generating Yail for screen 5264418663825408_main: : Cannot read property '

391 views
Skip to first unread message

Patrick Leitner

unread,
Jul 12, 2016, 4:27:32 PM7/12/16
to MIT App Inventor Forum
I get the error "Error generating Yail for screen 5264418663825408_main: : Cannot read property 'type' of undefined. Please fix and try packaging again."
Have no errors and no warrnings but still get this message, can anyone help me? :(

Ghica

unread,
Jul 13, 2016, 6:50:12 AM7/13/16
to MIT App Inventor Forum
Do you have a large project? >5MB?
Or many screens? >10?
Cheers, Ghica.

Patrick Leitner

unread,
Jul 13, 2016, 9:15:57 AM7/13/16
to MIT App Inventor Forum
Yes it is a large project and yes, it has over 10 screens

Ghica

unread,
Jul 13, 2016, 9:31:01 AM7/13/16
to MIT App Inventor Forum
And no, you never saw the message that you cannot have more than 10 screens?
http://ai2.appinventor.mit.edu/reference/other/manyscreens.html
Also, try to minimize images if you have them. Be sure that they are not larger than they appear on the phone screen.
Try to avoid redundancy in your code by having procedures.
Cheers, Ghica.

Taifun

unread,
Jul 13, 2016, 11:09:43 AM7/13/16
to MIT App Inventor Forum
see the following tips and in your case especially #3 and #4

  1. switch screens correctly 
    The recommended method of switching screens in App Inventor

  2. follow these recommendations Using Images with App Inventor

  3. avoid redundancy
    probably it helps to read chapter 19 - 21 in Dave's book http://www.appinventor.org/book2 to get an idea how to do DRY programming with App Inventor https://en.wikipedia.org/wiki/Don%27t_repeat_yourself

  4. reuse your components, see also Building apps with many screens and https://groups.google.com/forum/#!msg/mitappinventortest/YBAfURWv-tY/Ivqx6XcmDgAJ

  5. How to overcome the App Inventor project limit of 10 MB
Taifun

Trying to push the limits of App Inventor! SnippetsTutorials and Extensions from Pura Vida Apps by  Taifun. 

Patrick Leitner

unread,
Jul 13, 2016, 1:05:36 PM7/13/16
to mitappinv...@googlegroups.com
No i never saw this :o

Okay i made a checkpoint and tried delete the screens, i have 9 screens now and not much images.
But i also get the same error when i try to build the app :(
Have you any other ideas? :(

Is there no way how i get more informationen about this error? whats wrong? Its a apinventor 1 app i imported to appinventor 2.
Before it works good, no errors...

Taifun

unread,
Jul 13, 2016, 1:24:47 PM7/13/16
to MIT App Inventor Forum
check for red warnings and fix them
Taifun


Patrick Leitner

unread,
Jul 13, 2016, 2:13:51 PM7/13/16
to MIT App Inventor Forum
I have no warnings, thats the problem.
0 yellow and 0 red 

Taifun

unread,
Jul 13, 2016, 2:22:37 PM7/13/16
to MIT App Inventor Forum
 Its a apinventor 1 app i imported to appinventor 2.
did you get any errors during the conversion?
see also the troubleshoting hints here http://convert.appinventor.mit.edu/
Taifun

Abraham Getzler

unread,
Jul 14, 2016, 11:46:09 AM7/14/16
to MIT App Inventor Forum
I have no warnings, thats the problem.
0 yellow and 0 red 

Each and every screen?

ABG
 

fishingjr

unread,
Jul 14, 2016, 2:16:34 PM7/14/16
to MIT App Inventor Forum
I had an error like this and someone here told me to try Maxthon browser...  It worked for me...

Reply all
Reply to author
Forward
0 new messages