I have a Xamarin Forms application, when I try to run the Android application, the application is taking a lot of time and progress is stuck in the middle.
The deployment hangs after starting the emulator,
Do you have any idea how this could be resolved?
Grazi's reply solved my issue,
I solved it by accessing regedit.exe, navigating to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android, and changing the SDK path to my Xamarin Mono Android SDK folder.
The path originally was C:\Users[User]\AppData\Local\Android\android-sdk
then I changed to
C:\Users[User]\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK
thent it worked
This link gave me the clue.
Answers
Have you tried this?
https://developer.xamarin.com/guides/android/getting_started/installation/accelerating_android_emulators/
This is for Google Android emulator, I am using the Visual Studio emulator
I have the same problem. And I 'm using vs2015 with emulator for vs2015
Grazi's reply solved my issue,
I solved it by accessing regedit.exe, navigating to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android, and changing the SDK path to my Xamarin Mono Android SDK folder.
The path originally was C:\Users[User]\AppData\Local\Android\android-sdk
then I changed to
C:\Users[User]\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK
thent it worked
This link gave me the clue.
https://forums.xamarin.com/discussion/64088/android-emulator-opens-but-project-does-not-deploy-and-start
Try this.
1) Close the Android Emulator
2) Open up Hyper-V Manager
3) Stop the VS Emulator if it is still running.
4) Select the VS Emulator, Right click and select Settings.
5) Expand on the Processor, select Compatibility
6) Tick the "Migrate to a physical computer with a different processor version"
7) Click Apply.
Hope this helps.![]()
Thanks Albert for your reply,
The issue was in the register, there was a key for Android SDK path that needed to be changed. I corrected it and it's working
My Originally was C:\Program Files (x86)\Android\android-sdk
And I can not find any folder MonoForAndroid
I don't see folder Android in Wow6432Node!