When we are trying to build a xamarin forms project in release mode, we are getting the error:
C:\\Program Files (x86)\\MSBuild\\Xamarin\\Android\\Xamarin.An
I also experienced the same problem. After series of trial and errors i found a solution.
In your Manifest set Target Android Version to Android 7.1 (API Level 25 Nougat) or Higher. Set Compile Android Version to Android 7.1 as well.
I hope this helps