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:
- Launch the emulator (F5 in VS, then cancel the deployment using the Build/Cancel menu)
- Click on the chevron icon (») in the toolbar to the right of the emulator
- Select the Network tab
- Locate the preferred network ip address
- Back in VS, click on the Open Adb Command Prompt toolbar button
- Type adb connect [the emulator ip address]
- 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
Cardview Layout_Width="Match_Parent" Does Not Match Parent Recyclerview Width
Android Intent for Playing Video
Run Code When Android App Is Closed/Sent to Background
Change Color of the Overflow Button on Actionbar
Add Button to a Layout Programmatically
How to Change the Color of a Switchcompat from Appcompat Library
How to Check Edittext's Text Is Email Address or Not
Passing an Object from an Activity to a Fragment
Replace One Fragment with Another in Viewpager
Is Secure.Android_Id Unique for Each Device
Simulate Low Battery & Low Memory in Android
Calculate Text Size According to Width of Text Area
Android: Radiogroup - How to Configure the Event Listener
Best Practices: Layouts on Android (Programmatic VS Xml)
How to Disable Instant Run for Android Studio 3.0