Open gwallet-legacy.sln in the IDE (it's just called "legacy" because it's not migrated to Maui yet).
Build project GWallet.Frontend.XF.Android.
Expected Behavior
Should build, like it has always built over the years (and like it builds in CI).
Actual Behavior
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): Error XARDF7024: System.IO.IOException: Directory not empty
at System.IO.FileSystem.RemoveDirectoryInternal (System.IO.DirectoryInfo directory, System.Boolean recursive, System.Boolean throwOnTopLevelDirectoryNotFound) [0x00115] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:442
at System.IO.FileSystem.RemoveDirectory (System.String fullPath, System.Boolean recursive) [0x00020] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:365
at System.IO.Directory.Delete (System.String path, System.Boolean recursive) [0x00006] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/Directory.cs:298
at Xamarin.Android.Tasks.RemoveDirFixed.RunTask () [0x00058] in <fc1b00897d7e44c7b1a3950c1a222389>:0 (XARDF7024) (GWallet.Frontend.XF.Android)
Description
When trying to compile a Xamarin.Forms Android project that has always worked, now I'm getting a compilation error when hitting "Rebuild".
Steps to Reproduce
Expected Behavior
Should build, like it has always built over the years (and like it builds in CI).
Actual Behavior
Basic Information
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="31" />
Environment
Build Logs
Reproduction Link
See github URL above.
Workaround
Did you find any workaround for this issue? Not yet.