App Not Run in Visual Studio Emulator for Android in Visual Studio 2015

App not run in visual studio emulator for android in visual studio 2015

I had the same issue. VS 2015 can launch the VS emulator but can't deploy the app.

I was able to solve the issue like this:

  1. Launch the emulator (F5 in VS, then cancel the deployment using the Build/Cancel menu)
  2. Click on the chevron icon (») in the toolbar to the right of the emulator
  3. Select the Network tab
  4. Locate the preferred network ip address
  5. Back in VS, click on the Open Adb Command Prompt toolbar button
  6. Type adb connect [the emulator ip address]
  7. Press F5 again in VS

Looks like a VS bug to me.

Visual Studio Android Emulator won't run application

Like the other commenters, this is most likely just a symptom of slow emulator on your machine. I'm running Xamarin-Android development on my 2010-era OSX machine in mavericks with 8GB RAM, and it is slow-slow-slow, but usable. Try to find the Intel x86 speeds improvements (look for HAXM) and you will find that the emulator will be much much faster.

And yeah, get a real handset and plug it in to your computer: always much faster than emulation.

later edit Get Genymotion for Mac OSX or for PC/Windows or PC/Linux. It's way way way faster than the other emulators. I have since found that this is as fast, or faster, than running the App on my connected Android phone. It's certainly simpler in not having to have the device plugged into one of my USB ports, and allows me to code and test on the train. http://www.genymotion.com/

visual studio emulator dont run app and xaml page in xamarin

Please make sure the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android is set to Android SDK value you see in Visual Studio > Tools > Options > Xamarin > Android Settings. Then close everything, and try again.

Reference: https://bugzilla.xamarin.com/show_bug.cgi?id=43538

Cannot start Android emulator in Visual Studio 2015 with Xamarin

I was able to get it working, although I'm not sure if it was only 1 of the steps I did or a combination of them.

I had two layouts (Main.axml and ListLayout.axml) in the project, probably from another tutorial, but only 1 of them was filled out. My MainActivity was calling the empty layout. I changed it to call the correct layout.

My project settings also didn't have any supported architectures (Project->Properties->Android Options->Advanced), so I checked on armeabi and armeabi-v7a. I also checked on the option (On the Packaging tab) to generate one package per architecture, and unchecked the options to use the shared runtime and fast deployment.

Doing all this, I was able to get the emulator to run and test the Phoneword app.

I then enabled virtualization in my BIOS, checked on the x86 architecture, defined a new emulator device with the Intel x86 CPU, and am able to run the emulator much quicker now.



Related Topics



Leave a reply



Submit