Im investing further now and deleted all blocks in every screen, so I have only the layout now
When trying to build, Im getting the following errors now (in OFFLINE):
C:\Users\xxxxx\AppData\Local\Temp\runtime6030695574663178861.scm:411:22: warning - no known slot 'show' in java.lang.Object
C:\Users\xxxx\AppData\Local\Temp\runtime6030695574663178861.scm:415:15: warning - no known slot 'getMessage' in java.lang.Object
C:\Users\xxxx\AppData\Local\Temp\runtime6030695574663178861.scm:411:22: warning - no known slot 'show' in java.lang.Object
C:\Users\xxxx\AppData\Local\Temp\runtime6030695574663178861.scm:415:15: warning - no known slot 'getMessage' in java.lang.Object
and so on....
EDIT:
Server message in CMD:
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
EDIT2:
INFORMATION: Build error output: Error: Your build failed due to an error in the Activities stage, not because of an error in your program.
Error: Your build failed due to an error in the DX stage, not because of an error in your program.
EDIT 3:
Online works, the apk is build without any blocks in the screens (but took a very long time...)
Have to Edit my posts now as I am limited to 16 replies as new user...
Not many Media files in my App (and all under 1MB)
@Taifun: Well, in this case we are already helping a commercial entity free of charge. We would want the forum to have some benefit and that would normally be being able to follow the Topic and see corrected blocks etc. If everyone starts sending their Projects via PM, all that is lost.
I did a little experimenting. I imported your aia into AI and first i just deleted the biggest screen and i was able to build your apk. You have in total more then 19000 blocks in your app.
Then i removed your project and imported it again. I saw you are using some of Taifuns extensions. Some of them are out of date.
You have Tools, Wifi and Mail. Wifi and Mail are out of date. When i wanted to update Wifi i got this message.
So i deleted the Mail extension and i was able to build the apk.
Then i wanted to update the wifi extension and got this message
I don’t know if the problem of not building was caused by the mail extension. I could also be that enough blocks were deleted when i removed the extension that the apk build.
Maybe you can test for yourself if you are able to build if you remove the mail extension. Since you bought the extension from taifun i guess you can ask him for the latest one.
Edit:
I did a last test. I can remove the tools and wifi extension and still get the error message. Only after removing the mail extension the app builds.
I know the problem that extensions can no longer be updated in AI2. Then try to open the aia file with winzip (etc.) and copy / replace the extension from another new aia.
I suggest you start a brand new Project - and before doing anything in App Inventor, write down on paper which features are absolutely required and which are luxury and not really needed - ditch those from the design (be ruthless!). Also review how the App works, keep the GUI as simple as possible.
Having decided what is really required, do not simply return to using Umpteen Screens. First of all, see the FAQ on how to use Virtual Screens.
When building the block code, you can use separate "mini Projects" to test as you go along - do not wait until the entire Project is "finished", only to discover that it doesn't build or doesn't run as intended. Think ahead when defining Block code - you have the original Project for reference, always ask yourself "is there a better way to do this?".
I did some tests with the aia and it actually seems to be due to the number of blocks. As soon as I remove some block-heavy screens, the app will compile (in a few sec).
Removing the extensions doesn’t help.
Therefore, it would certainly help to reduce the number of blocks if “Any Componten” blocks were used instead of frequently repeated blocks (and there are a lot).
In a PM, We have already concluded it is the amount of blocks. I have suggested the Use of a Single ListView to replace 249 buttons, 249 Text Boxes and 249 Arrangements.
I think raising a PM should be limited to Power Users. Users are already using PMs when there is no need and other Users cannot learn from posts they cannot see.
I have the same problem. I added a lot of horizontal and vertical layouts to the application to customize the look. I can’t compile the application now. Is there a chance to work around the problem without removing the layouts?
In one VerticalScrollArrangement over 1000 other Arrangement with labels and text fields. After removing the arrangements part, the problem disappeared. I also used the arrangements to make black frames around the text boxes but I had to give it up although it looked nice.
After deleting the layouts, the .aia file has not shrunk but is already compiling.
I also tried the Kodular creator and I have a log. There was a similar log in AppInventor:
The compiler error output was
________Checking dangerous extensions
________Preparing application icon
________Creating animation xml
________Creating fragment of xml
________Creating listview xml in res / layout / …
________Creating listview xml in res / layout-v21 / …
________Creating xml in res / drawable / …
________Creating splash png in res / drawable / …
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________ Attaching native libraries
________ Attaching Android Archive (AAR) libraries
________ Attaching component assets
________Invoking AAPT
AAPT time: 0.921 seconds
________Compiling source files
(compiling io / kodular / froniu84a / Configurator_LWPMa / Screen1.yail to io.kodular.froniu84a.Konfigurator_LWPMa.Screen1)
(compiling /tmp/runtime5449954267369594796.scm to com.google.youngandroid.runtime)
Coffee compile time: 5.298 seconds
________Invoking DX
YAIL compiler - DX execution failed.
.