I Just updated the visual studio to version 15.7.0 preview 3.0, now when i click on ADM nothing is happening, ahh first i disabled the hyper-v as visual studio suggests while running an emulator.
The workaround to this is to disable hyper-v then use xamarin android device manager instead of android device manager, link to download the xamarin android device manager, Android device manger is upgraded to xamarin android devic manger in vs 2017 15.7
if haven't updated the vs to 15.7 u can fix this by wiping all data in emulator and disabling hyper-v, if have not updated the vs, ADM should open without any problem.
To add to this - device manager is now included by default in Vs and VSfM, so no need to download a separate app.
For me i didn't had avd folder at C:\Users\.android location.
I created the avd folder and now everything is working.
When i run the emulator getting this
Hey wait @NinaVyedin I guess I've seen you in some Xamarin conference am I right? thank you for your answer.
For me, with the latest VS 15.7 update, the problem was that the Device Manager was unable to find a subfolder avd as in the log below. I created the avd folder manually and it started working. Not sure how such code makes into production that can't create a folder if it does not exist.
[18-09-23 06:53:03.85] --- Device Manager started
[18-09-23 06:53:04.90] Dispatcher unhandled exception occured
[18-09-23 06:53:04.94] System.IO.DirectoryNotFoundException: Could not find a part of the path '.android\avd'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator1.CommonInit() at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
at System.IO.Abstractions.DirectoryWrapper.GetFiles(String path, String searchPattern, SearchOption searchOption)
at Xamarin.DeviceManager.Common.AvdManager.ReloadAVDsFromDisk(Boolean dontReloadEditingOnes)
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at Xamarin.DeviceManager.MainWindow.UpdateAvdsAndDeviceDefinitions(Boolean reloadFromDisk, AvdInfo avdToSelect)
at Xamarin.DeviceManager.XamarinAndroidDeviceManagerApplication.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
1.CommonInit() at System.IO.FileSystemEnumerableIterator
I did install the xamarin android device manager again manually to get it working again.
I'm using Visual studio 15.9.4 version
Be aware to change the install path to: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Xamarin\AndroidDeviceManager during installation.
One other issue i came across was that my profile name has a special charater in it: é
That creates quite some issues with Visual studio actually.
I had issues before with it, and this time, the device manager couldn't find the AVD folder in my profile anymore.
Instead of é it was looking for ??
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies