Pjamaica
How to change the icon for Android in a Maui/Blazor application?
Net 7.0, latest visual studio preview. I have a simple (beginner) one page Maui/Blazor app that is working fine with the default icon and default splash screen. (both windows and android with emulator and a real device connected with USB cable)
I have created a custom icon and changed the project file
<MauiIcon Include="Resources\AppIcon\coaster.png" />
This works on windows, but android gives an error: invalid file path '...Debug\net7.0-android\res\appicon\coaster.png'.
I have tried to create new folders under android/resources, but I can't get it to compile.
The default .svg icon works without a problem.
Any hints?2 replies