Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin sample application not displaying anything

I meant to try out Xamarin.Android for a project of mine, so I installed Visual Studio 2015 and Xamarin.Android. I then installed the packages for the versions of Android I meant to use.

Now, I am trying to fire up TaskyAndroid, following this tutorial. At first, one of the two projects was skipped, which I fixed by babbling around the net. Now, if I start it in Debug, it launches the emulator and gives me this error:

Couldn't connect to logcat, GetProcessId returned: 0

I checked in the project properties, both projects of the solution are configured for Debug. I have Fast Deployment disabled and I allowed INTERNET and ACCESS_COARSE_LOCATION in the Android Manifest. The emulator displays a blank screen.

If I start it in Release mode (after changing the configuration), the emulator displays the same thing, without the aforementionned error.

EDIT: I have tried cleaning and rebuilding the solution. Deselecting "Use Shared Runtime" and reinstalling Xamarin didn't help either. I have tried hahing a look at the log, but I failed to muster any relevant information from it.

like image 951
Slath Avatar asked Nov 16 '25 12:11

Slath


1 Answers

There are several solutions in this thread. Please try:

  • Closing Emulator, Cleaning solution then Running solution worked for me. Or
  • Clean and Rebuild Or
  • Deselecting 'Use Shared Runtime' in Project Properties > Android Options > Packaging properties Or
  • Re-installing Xamarin emulator
like image 154
Luis Beltran Avatar answered Nov 19 '25 02:11

Luis Beltran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!