Too many files in Assets?

73 views
Skip to first unread message

Paolo Ballarini

unread,
Sep 16, 2017, 12:36:26 PM9/16/17
to MIT App Inventor Forum
Hi, 
I have a project created with App Inventor that contains many small JPG files in the Assets. (about 400, by 3 kbytes each)
I have problems loading the project into the builder....
My AIA project is large 1.36 MBytes
Do you know if there is a physical limit in the number of possible files in the Assets folder?
Thanks to everyone

Tim Carter

unread,
Sep 16, 2017, 12:51:54 PM9/16/17
to MIT App Inventor Forum
Quite possible

Try a routine to import all these files on first run of the app.

See here

Tim Carter

unread,
Sep 16, 2017, 12:52:54 PM9/16/17
to MIT App Inventor Forum
Although there could be another issue with your app causing the problem - check for "empty blocks" for example

Paolo Ballarini

unread,
Sep 16, 2017, 1:05:27 PM9/16/17
to MIT App Inventor Forum
Thank you Tim,
I have exported the fully functioning AIA project to my PC with no media in the assets folder.
Then I manually inserted my files in Assets folder (I did it again.... but with fewer files...)
I used WinRar to edit the AIA file.
Then when I reload my project onto the server.... here is the error.....
PS. I can't upload files in runtime, my app must work off-line

Paolo Ballarini

unread,
Sep 16, 2017, 1:21:50 PM9/16/17
to MIT App Inventor Forum
From my PC I have edited the AIA file (with WINRAR), I have removed almost all the files from the Assets.... folder.
Now the builder loads my project....
I think there is some limitation (server side) for the amount of files....

Tim Carter

unread,
Sep 16, 2017, 1:30:24 PM9/16/17
to MIT App Inventor Forum
If your app must work offline, how are users getting the app?

If directly from you or via email then you could provide a zip file of all your images, with the app coded to a specific directory that they need to install to

If from Play Store/via email/other download, then they will be online, so they could do file by file?

Tim Carter

unread,
Sep 16, 2017, 1:32:00 PM9/16/17
to MIT App Inventor Forum
Suggest keep testing until you find the limit (by adding say 50 images at a time, until it no longer compiles)

I am not aware of a precise number of files limit, but this does seem to be the problem.

Abraham Getzler

unread,
Sep 16, 2017, 9:40:11 PM9/16/17
to MIT App Inventor Forum
Have you tried building using
?

It uses a different back end.

ABG

Paolo Ballarini

unread,
Sep 17, 2017, 3:25:47 AM9/17/17
to MIT App Inventor Forum
Hi friends,
Yes, I have tried "http://code.appinventor.mit.edu/" and it works well, always upload my project, without problems!
I also tried the off-line version of App Inventor, which also always loads my project with many Assets.
I believe that I will resolve this with one of these two solutions.
One last question for Abraham: what does it mean:"It uses a different back end". I'm not an expert, what is back end?
Thanks to everyone

Abraham Getzler

unread,
Sep 17, 2017, 2:41:27 PM9/17/17
to MIT App Inventor Forum
what does it mean:"It uses a different back end". I'm not an expert, what is back end?

As opposed to the front end, which you see,
mostly web servers and Javascript,
a back end runs the parts you can't see, like disk storage. 

Paolo Ballarini

unread,
Sep 19, 2017, 7:37:59 AM9/19/17
to MIT App Inventor Forum
Hi Abraham,
Thanks for the info!
Resolved!
Reply all
Reply to author
Forward
0 new messages