I use Xamarin for VS2015. In the summer I installed Xamarin on my personal computer. It still works there, you can create applications there. Another thing is a work computer. There I installed Xamarin in October. And it went, went ... Let's start with the fact that as soon as I compile the program on any device, VS waits, does something, and says, they say that errors occurred during the assembly. And the error window shows nothing.

I thought that the problem is in the emulator (I am a poor creature who does not have a smartphone). Therefore, I used the included Google emulator. Did not work It just did not start, although it wrote "Done". After using Nox Emulator, I realized that just the code is not so compiled. APK file appeared - but does not work.

And yes ... Everything is a template, starting code. That is, after creating the project, I did not change anything. Does not work!

What needs to be done to fix the problem?

  • Well, for example, attach the error to start with - Senior Pomidor
  • What is trace? By the way I forgot to mention that the error window does not see anything. - Mr. Don't know
  • stack trace errors - Senior Pomidor
  • And is he here? This is the same class. My code is simply not executed. msdn.microsoft.com/ru-ru/library/… - Mr. Don't know
  • and there are no errors in the build log (Output / Build)? - PashaPash

3 answers 3

There are different cases. When this occurs.

  1. More often. It is enough to delete bin and obj in the project. And the problem goes away.

  2. Check project settings. These are my settings. There may be an extra tick intended only for Release.

enter image description here

enter image description here

Check Advanced properties / Support architectures (for emulators, there should be x86_64 and / or x86 checkboxes

  1. There should be no Russian characters in the paths to sdk and ndk
  2. Update sdk, ndk to the latest versions.
  3. If the above does not help. And you are using a template application. Try reinstalling sdk, ndk or updating the plugin for Visual Studio. Sometimes it helps. But this is a rare case.
    1. Do not use Apache Cordova emulators. Only from google or Microsoft.

Approximate actions. Which help me to solve such a problem. Which periodically returns.

  • The decision did not fit. Thank you of course. Apparently the problem is in the OS. - Mr. Don't know

In fact, I found the answer to the question myself when I read the documentation for the emulator ... Note that in every unsuccessful case, I used weak computers. Therefore, in fact, an error occurred with the emulator. The solution to the problem: buy a smartphone and not suffer.

    Not every smartphone will work, I have a normal emulation on one computer, on the other it’s just a disaster, you can try using different emulators, for example there is a bluestack emulator, the emulator from the studio is only 10, then 8K there are bugs related to InteL HAXM for example.