Error after adding an icon. lazarus / 43-Android ---------------------------------------------------------------------- shyub · 2024-05-04 04:46 I'm testing LAMW-0.8.6.4. I create a project without an icon, save it and close Lazarus. I open the LPR file, install the components, and describe the functionality. After each change, I compile and test it on the NOX-player emulator. So far everything is working. I add an icon (PNG file 192x192) and after that GRABLE-8.5 throws an error. Similarly, I create an empty form, compile and check it in the emulator. I add an icon and again the same error... What could be the reason? ---------------------------------------------------------------------- shyub · 2024-05-04 06:43 The problem is related to resources. The thing is that ...res\mipmap-... contains images in PNG format, but they should be WEBP... (It is possible that some older projects also do not compile due to resource reasons). Until LAMW provides a mechanism for either converting PNG to WEBP, or at least PNG will not be automatically written to ...rc\mipmap..., then I simply deleted PNG from these folders, and instead of the standard ones I placed the icons I needed. After this, the project was able to be compiled and run in the emulator. However, the window began to be positioned horizontally at any screen position. I had to explicitly specify the window position ("ssSensor" does not work): Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);begin  Self.SetScreenOrientationStyle(ssPortrait);end; ---------------------------------------------------------------------- shyub · 2024-05-05 10:34 I wrote a small utility "ResLAMW" that allows you to create icons and place them in project resources. I am attaching the project files to the message. To compile, you need to install BGRA components. Help on screen resolution in Russian, you can translate it into your native language.