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
Jus I changed linking from "NONE" to "sdk and users assembly" and I ran my solution, and the issue has been solved. after that you can change "sdk and users assembly" to "NONE" and run your project without any issue.
But the release file size may be will be change.
enter image description here