Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net MAUI Splash screen android error - failed linking file resources

I'm trying to add a splash screen as described in the documentation:

<MauiSplashScreen Include="Resources\appsplash.svg" Color="#fff" />

The resource is in the appropriate directory with the 'MauiSplashScreen' Build Action

enter image description here enter image description here

Works fine debugging on windows but trying to build/debug on android gives the following errors:

Error   APT2061 failed linking file resources.
Error   APT2260 resource drawable/appsplash (aka appname:drawable/appsplash) not found. 

Any ideas?

like image 398
Jimmy Avatar asked Nov 22 '25 16:11

Jimmy


2 Answers

Had this exact same issue. but my SVG is valid.

Resolved by Build -> 'Clean Solution', followed by 'ReBuild'.

like image 116
Ron Avatar answered Nov 24 '25 05:11

Ron


It was the format of the SVG; not sure what was wrong with the format exactly but adding a different SVG solved the issue

like image 32
Jimmy Avatar answered Nov 24 '25 07:11

Jimmy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!