Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Emulator for Android - Project does not Deploy

Windows 8.1

Visual Studio 2015 RC

Android Application API Level 21 (Xamarin.Android v5.0 Support)

I recently had to rebuild a new PC as my old one had major problems. On this new PC, the project compiles and the emulator launches. However, during the emulator OS load screen I receive a message stating:

"This pre-release version of the Visual Studio Emulator for Android will expire in 3 day(s), 13 hour(s). Please upgrade to a newer version."

After I click "OK" the emulator OS finishes loading and I receive the message "2>Emulator launched successfully." in the Visual Studio Output window.

On my previous PC I did not receive the pop during the emulator's load and after the emulator finished loading it would then deploy the application to the emulator and begin debugging. However, after the emulator finishes loading on my new PC, no further output is displayed in Visual Studio and the green load bar in the bottom right corner of Visual Studio sits at about 30%.

I have been unable to find any information online related to the popup message I receive during the emulators load screen. I cannot find any update for the emulator or Visual Studio. I have uninstalled and re-installed Android Studio, Xamarin Studio, and Visual Studio twice with no change.

How do I update to the latest version?

Why would Visual Studio not deploy the project when the debugger begins?

like image 303
Paul - Soura Tech LLC Avatar asked Jul 08 '15 16:07

Paul - Soura Tech LLC


People also ask

Why is my emulator not working Android studio?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Can I use Android Studio emulator in Visual Studio?

Just open up the Visual Studio Emulator for Android entry in your Start Menu, hit play, and the emulator is ready to debug from any IDE. Download the standalone emulator today!

How do I deploy xamarin to Android?

Manual InstallationCopy the file to your Android device's physical memory or an SD card and then run the file from your device. Android, by default, blocks installation of Apps that are not from PlayStore. To install your App, you must enable it to accept the App installation from the Settings.


2 Answers

I had the some problem, and I was able to fix it by manually running adb connect emulatorhost:5555 from the command line.

like image 124
Bodil Avatar answered Sep 18 '22 10:09

Bodil


I found that I had to launch Visual Studio with elevated permissions. I changed the properties for the shortcut and checked the field "Run as Administrator" and all is well again.

like image 41
Paul - Soura Tech LLC Avatar answered Sep 21 '22 10:09

Paul - Soura Tech LLC