My app works fine and generates an apk file. But when I add a custom icon file in project properties I always get the error t this page isnt workiing. http error 500. I have tried many times. My icon file size is 1024 x 1024. I have tried both png and jpg formats
- where are you adding the customIcon.png from?
Icon (only can be loaded from the Designer screen and should be in the Media folder)
The image used for your App’s display icon should be a square png image with dimensions up to 1024x1024 pixels. Larger images may cause compiling or installing the app to fail. The build server will generate images of standard dimensions for Android devices.
The dimensions should be as above but the file size should be less than 5 Mb. Larger files do not easily load into Media.
The custom icon should be loaded from Media
-
Try a different image; does the same thing happen? The file can have smaller dimensions as long as it is square.
-
is this custom for an ios or Android project?
Thanks for replying. It is an android project. I did upload the file as shown. If I upload the icon file to media but don't actually change the icon in project properties. The APK file loads correctly and displays the default icon. I will try a smaller file. The size of my current icon png file is 1.53 MB at 1024 x 1024
I tried a file 640 x 640 I still get the same error. The project compiles ok every time I put in the custom icon, but I get the error once the QR scan code comes up, or I try to download the APK file. The error when trying go download the file is This page isn’t working
ai2.appinventor.mit.edu is currently unable to handle this request.
HTTP ERROR 500
Try an empty project together with your custom icon and in case this also does not work, post the aia file here for others to investigate
Taifun
Ok, I will try with an empty project
I tried with an empty project and it works fine and creates my custom icon when creating the apk file and installing. So must be something about my project, but not sure where to start looking as it compiles ok. Only when download apk file does the error show. It does create an aab file without errors but I have not tried loading that into the Play Console, so no idea if it will work.
I saw an idea to use https://code.appinventor.mit.edu/ instead of https://ai2.appinventor.mit.edu/. My icon now works and I can install showing the icon so maybe it was a file size orsimilar issue, but what is the difference in these two sites and which should I use.
The code server is the AI2 fat farm .
Your app has too much media or too much code for the AI2 server