Build issue with Visual Studio for Mac 8.10.16(build 2)

Shubham Kumar 1 Reputation point
2022-01-07T13:03:08.967+00:00

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Legacy.targets(5,5): Error XACDF7028: System.IO.FileNotFoundException: Could not load file or assembly 'pdb2mdb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'pdb2mdb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at Microsoft.Android.Build.Tasks.AndroidTask.Execute () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:17 (XACDF7028)

I upgraded the project with androidx libraries and updated the visual studio to latest since then i am facing this issue. I was not facing this issue with visual studio for mac (8.10.9) build 3.
Can anyone help me with this?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,336 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bryan M 1 Reputation point
    2022-02-14T10:54:46.85+00:00

    Sorry for resurrecting an older thread, but I managed to find a fix for this issue!

    Simply uninstall the Xamarin.Android SDK on your Mac and reinstall it through the installer, use the following link to find out which commands you need to remove and reinstall everything; https://learn.microsoft.com/en-us/visualstudio/mac/uninstall?view=vsmac-2019#uninstall-xamarinandroid

    Hope that helps! :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.