Hi everyone!
I have a big problem!!! When I try to build my android app I receive this message in red
Server error: could not save one or more files.
I’m trying from yesterday.
Why?
Hi everyone!
I have a big problem!!! When I try to build my android app I receive this message in red
Server error: could not save one or more files.
I’m trying from yesterday.
Why?
App too big?
Post the aia.
The app is about 11500 blocks
“big” refers to number of blocks or size (in Mb)? What is the limit?
If this is the cause, do you have a solution?
Sorry, but I prefer not share the work… I’m sure you will understand…
size in mb.
If using the main (ai2) server you have an aia project size limit of 30mb, with code server 50mb. Bear in mind there is an apk overhead of @ 3.5mb.
If even bigger, then you can remove assets, build apk, then decompile apk and add back your assets.
Optimise your asset sizes - e.g. for images consider the display size on the device screen, they do not need to be any bigger than that. Use compression techniques with jpg or webp to reduce file sizes.
That said, 11,500 blocks is on the limit for a single screen, and may be causing problems, but this is usually evident when working on the aia.
Thank you @TIMAI2
How can I know the dimension of apk if I can not build it?
What do you mean with “assets”?
I’m not a developer with code, I only use MIT app inventor: how can I decompile and add “assets”? Do I have to download a specific software? Where can I read info about this?
Export / download the aia and post the size of it.
Files in your Media folder
I will read this.
Do you suggest to build apk or aab?
I woul like to share my app with the greater number possible of android users.
APK, the AAB is only for the Play Store.
Thank you very much @Anke
...
Hi @TIMAI2
I checked the dimension of my AIA
It is 4.23 MB! Not so big…
What is the problem in your opinion?
Try to build again. Try on ai2 and code servers.
If it still won't build, then you ussue is possibly "too much of something" - probably your number of blocks.
Only wondering how to edit 11K blocks ( even searching for the “right block” is a quite complex task )
What means? Can you explain?
11500 is too much?
My guess is that you are currently using the https://ai2.appinventor.mit.edu.
Try to compile you app here again, see what you get.
If you get the same error, then export your aia project to your computer, open up https://code.appinventor.mit.edu and sign in, then upload your aia project and try to compile again. The code server has wider build boundaries, so it may be able to cope with the extra blocks. If this also fails, report any error messages you receive.
11,500 blocks is possibly too much (maybe by as much as 2000 blocks)
Follow the advice provided by @ABG earlier in the topic to review your blocks.
If you feel you cannot remove or combine any of your blocks, then you might need to create a new screen, and transfer some of the blocks and work there.
Thank you @TIMAI2 and thank you @ABG for tips relating reduce the number of blocks.
Will I loose privacy if I compile my aia with code server? (other can see my blocks?)
I will try it.
No, why would you.