i am creating an app in xamarin
using .Net Standard so far i have installed following Nuget packages in my solution
PCL/.Net Standard packages
Android packages
Min SDK level is Android 5.1
and max is Android Oreo 8.1
.
When i run the app in visual studio VS2017 it runs for few seconds and closed down abruptly and throwing following error
04-06 02:45:11.182 6262-6262/com.org.sam A/monodroid-assembly: Could not load assembly 'System.Runtime.CompilerServices.Unsafe' during startup registration.
04-06 02:45:11.182 6262-6262/com.org.sam A/monodroid-assembly: This might be due to an invalid debug installation.
04-06 02:45:11.182 6262-6262/com.org.sam A/monodroid-assembly: A common cause is to 'adb install' the app directly instead of doing from the IDE.
i tried cleaning the solution many times and removing bin and obj folders too but i am getting the same error.
I have not written any code anywhere as i am just migrating the project so this project is blank.
I personally think Realm
has the System.Runtime.CompilerServices
reference and due to that its creating issue. here is the screenshot of realm installing from nuget