Android does not handle images/splash/icons with the same name and overwrites
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 296
Description
Description
Right now, generated images may overwrite other images if they have the same name. This is because if you have an svg MauiImage, the final image has the same name as that original file. Then, if you have a SVG for the splash screen with the same name, it has no way of picking another name.
Workaround
One solution would be to use a Link="NewNameHere":
<MauiImage Include="samename.svg" Link="anothername.svg" />
Related to:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing Android asset generation for MauiImage and SVG splash-screen inputs, focusing on how output names are chosen when source names collide. Reproduce the collision described with same-named image and splash assets, then verify that generated files no longer overwrite one another while the Link workaround remains unnecessary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100