Why does debugging an app on Android devices cause the app to crash?

Nik_SNik_S USMember
edited January 2017 in Xamarin.Forms

I am using Xamarin Studio for Mac to build a mobile application for iOS and Android.

I created the default (Welcome to Xamarin Forms!) Forms app. I tried both the Portable Class Library and the Shared Library with the following results:

  • Running release build of the app on iOS device - SUCCESS

  • Running debug build of the app on iOS device - SUCCESS

  • Running release build of the app on Android device - SUCCESS

  • Running debug build of the app on Android device - FAILURE (details below)

  • Running debug build of the app on emulated Android device - FAILURE (details below)

FAILURE: On the device, I simply get "MyApp has stopped" before the app has successfully started. In Xamarin Studio, I get no indication that anything has gone wrong.

Real Android device: Samsung S5 SM-G900-F

Emulated Android device: (Genymotion) Google Nexus 5X 7.0.0 API 24 (tried several others with the same results)

I tried setting a breakpoint on InitializeComponent() in app.xaml.cs. No hit. What am I missing here?

Answers

  • Nik_SNik_S USMember

    We need to make a decision on our future development environment. If debugging on android devices is simply not supported, then Xamarin Studio will clearly not be it.

Sign In or Register to comment.