Question

I've developped an android application using Xamarin. It works fine on the emulator but crashes on real device. The apk gets installed on the device and on opening the app it says "application has stopped unexpectedly.Please try again" and forces the application to close. Targeting framework, minimum sdk version etc everything is fine but still does not work. Any help will be appreciated. Thanks

Was it helpful?

Solution

When you're debugging with Xamarin Studio (or Visual Studio), Xamarin.Android will install the Mono runtime and support files separately.If your application is Debug-built app, then the problem will be that the shared runtime isn't present. So on "Release" mode please ensure that you uncheck "Use shared mono runtime" on project options. I have attached the screenshot please go through. enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top