maui: Failure Building Due to Splash Screen Image splashSplashScreen.png

Description

Unable to build the project after cleaning the project or first building after cloning the repository. The project platforms enabled are Android and UWP/WinUI. The splash screen is the same one used by the MAUI template project shipped with Visual Studio 2022

DEP0700: Registration of the app failed. [0x80073CF6] AppxManifest.xml(34,27): error 0x80070002: Cannot install or update package XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX_YYYYYYYYYYYYY because the splash screen image [splashSplashScreen.png] cannot be located. Verify that the package contains an image that can be used as a splash screen for the application, and that the package manifest points to the correct location in the package where this splash screen image can be found.
18:08:27:166

Steps to Reproduce

  1. Clean project in Visual Studio
  2. Remove obj and bin (output) folders
  3. Rebuild project

Link to public reproduction project repository

(NA)

Version with bug

7.0.86

Last version that worked well

7.0.86

Affected platforms

Android, Windows

Affected platform versions

Android 5.0 (21) and up, Windows SDK 10.0.19041.0

Did you find any workaround?

Clean, build, clean, build, (rewind/repeat)

Relevant log output

18:08:25:249	Creating a new clean layout...
18:08:25:304	Copying files: Total 207 mb to layout...
18:08:26:035	Checking whether required frameworks are installed...
18:08:26:085	Registering the application to run from layout...
18:08:27:051	DEP0700: Registration of the app failed. [0x80073CF6] AppxManifest.xml(34,27): error 0x80070002: Cannot install or update package b236464f-3896-4247-bb90-54210b978f5f_9zz4h110yvjzm because the splash screen image [splashSplashScreen.png] cannot be located. Verify that the package contains an image that can be used as a splash screen for the application, and that the package manifest points to the correct location in the package where this splash screen image can be found.
18:08:27:166	1>Deployment of the application to the target device failed.
18:08:27:188	========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
18:08:27:188	========== Deploy started at 6:08 PM and took 03.382 seconds ==========

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 6
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I can confirm that this issue STILL OCCURS in .NET 8.0 Maui Preview 7.

I was seeing the same problem deploying this solution: https://github.com/Esri/arcgis-maps-sdk-dotnet-demos/tree/main/src/MauiSignin

I was able to get past this problem by closing VS, deleting bin/obj/.vs folders, then rebuilding. I think I had some temp files left over from a previous version of VS/MAUI that were preventing successful deployment.

This issue persists in the latest Visual Studio 2022 v17.7.5 release with MAUI workload v7.0.96 on .NET 7, even after uninstalling and re-installing the newest MAUI templates.

The workaround suggested by @mstefarov and @DamianSuess works for me in the mean time.

As per another example, when I attempted to build the MAUI sample project for LiveCharts2, I get the same exact error message about splashSplashScreen.png. Reproducing was simple, pulled back the project and launch their .NET MAUI solution, setting the target to Windows.

Workaround

Build > Clean in VS2022 didn’t solve the issue, the only workaround I found to work was to delete all bin and obj folders and rebuild.

Error in Output

DEP0700: Registration of the app failed. [0x80073CF6] AppxManifest.xml(33,27): error 0x80070002: Cannot install or update package e0049276-8cb3-4a16-85d6-8dd07de43eb8_9zz4h110yvjzm because the splash screen image [splashSplashScreen.png] cannot be located. Verify that the package contains an image that can be used as a splash screen for the application, and that the package manifest points to the correct location in the package where this splash screen image can be found.	MauiSample			

Thank you @ozersenol for verifying this, now I know I’m not going crazy. I tried the same approach and didn’t know if that was an accident or not.

I could reproduce this problem by simply commenting out line for MauiSplashScreen on.csproj file and tried to build app on Windows platform. On android I have not got this isuue. Then I put it back and boom… solved!