App will not deploy to Android, but will compile

Viewed 596

I am trying to learn more about Xamarin in my spare time. I am having problems at every single step and sub step of the way. I am spending all of my time troubleshooting issues with Emulators and the SDK along the way. No time for development.

My current issue is that the Android Emulator hangs at the "Emulator launched successfully." stage i.e. the Emulator is launched, but the application is not deployed. It is so very frustrating. Why is the app not deployed. So far (I have spent a lot of time):

1) Reinstall VS 2017.
2) Reinstall Visual Studio Emulators for Android.

I have spent so much time on this. Is there anything else I can try?

2 Answers

VS 2017 is much older and there have been several issues users have been facing. Uninstall VS 2017 and Install VS 2019 instead. Once you have that, and in the unlikely event that you are still facing issues, change your log verbosity to Diagnostic and share the error message.

Occasionally Android emulators created by VS may not work properly, in that case try to use an actual device, or create an emulator using Android Studio (you will have to install Android studio for that)

I managed to get past this error by doing the follow (copied from here: Xamarin "Waiting for runtime checks to complete" and VS Emulator):

1) Build and Run the application 
2) The build will stall with at "Waiting for Runtime Checks" 
3) In the emulator click the ">>" arrows in the tool-bar to the right 
4) Make a note of the IP address for the Windows Phone Emulator Internal Switch 5)
5) Back in VS. From the menu select Tools->Android->Android ADB Command Prompt 
6) Type "adb connect [IP_FROM_STEP_#4]" 

The build continued.

Related