[SOLVED] Cannot change launcher icon lazarus / 43-Android ---------------------------------------------------------------------- maurobio · 2023-05-21 11:34 Dear ALL, Here is yet another Android newbie question... I have not been able to change the launcher icon in my app. I go to Project -> Options -> [LAMW] Android Project Options and in the Application tab I change the launcher icon for a custom image (36 x 36), which is correctly displayed. However, when I compile the app and install it on the target device, the standard 'lemur catta' LAMW icon is displayed instead of my own icon. How can I make my own icon be used as the launcher icon? Thanks in advance! With best regards, ---------------------------------------------------------------------- jmpessoa · 2023-05-21 17:05 Go to your project folder....  look for  the folders  " res/drawable*** " and replace  the "ic_launcher.png" collection... but the file name  of your new icons must continue as "ic_launcher.png" (some online tools can produce all collection for you...) ---------------------------------------------------------------------- maurobio · 2023-05-21 19:35 Hi, @jmpessoa! Doing it manually? Really? In that case, what use would be the fancy 'Project Options' -> '[LAMW] Android Project Options' interface? I just discovered that, by choosing the '96x96' size in the Launcher icon dropdown box allows the IDE to automagically create all required versions (in lesser and larger sizes) of the launcher icon! Living and learning! With best wishes, ---------------------------------------------------------------------- jmpessoa · 2023-05-22 06:29 QuoteLiving and learning! well, it looks like i'm already in another phase:  living and forgetting and [maybe] (re)learning... ---------------------------------------------------------------------- schumi · 2024-09-14 09:46 hi, I have same problem in new app, i have cheched ic_launcher.png in  res/drawable***, but icon don't change LAMW 0.8.6.4 LAZ 3.0 ---------------------------------------------------------------------- Guser979 · 2024-09-14 11:40 In Project\Project Options\Application Choose the same icon for all sizes shown. Answer yes to resize Note: The following message may appear when trying to build > [mipmap-hdpi-v4/ic_launcher] res\mipmap-hdpi\ic_launcher.png [mipmap-hdpi-v4/ic_launcher] \res\mipmap-hdpi\ic_launcher.webp: Error: Duplicate resources Just delete the .webp versions of ic_launcher from the mipmap folders; ---------------------------------------------------------------------- neuro · 2024-09-24 01:31 Quote from: Guser979 on September 14, 2024, 01:40:45 pmJust delete the .webp versions of ic_launcher from the mipmap folders; Two years ago I have found this workaround solution too. However this is a bug of LAMW compiler and should be fixed. .webp versions of ic_launcher should be deleted automatically when changing the icon. I have reported this bug on July 16, 2022: Quote from: neuro on July 16, 2022, 10:53:44 pmChanging of Launcher icon fails to work. Just create new project and change Launcher icon by going to menu: Project -> Project Options -> [LAMW] Android project options -> Launcher icon Then run menu [LAMW] Build Android Apk and run The result is: QuoteFatal: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':mergeDebugResources'. > [mipmap/ic_launcher] D:\AppLAMWProject1\res\mipmap\ic_launcher.png   [mipmap/ic_launcher] D:\AppLAMWProject1\res\mipmap\ic_launcher.webp: Error: Duplicate resources