Why I can't deploy .Net Maui project to physical device?

Viewed 24

I have a .Net Maui app.

I used to test on an android physical device. Everything was working fine. But recently, I can't deploy anymore. I'm getting the following error :

    Error   XARDF7024   System.IO.IOException: The directory is not empty.

       à System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
       à System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
       à Xamarin.Android.Tasks.RemoveDirFixed.RunTask() P99-SoireeSympa C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\32.0.440\tools\Xamarin.Android.Common.targets   2449    

The project compiles properly. The error is raised only when trying to deploy to an android device.

Does anyone know how to solve that please ?

Thanks

0 Answers
Related