Android SDK Manager or Device Manager fail to launch

Hi folks,

On a new laptop I experienced this issue, causing multiple BSODs during builds and debugging sessions. Issue is now resolved with update of HAXM to version 7.3, but now I am completely unable to launch the Android SDK Manager or Devices Manager. Selecting the options from VS2017 or even launching the programs from File Explorer launches the UAC escalation dialog but the apps never open. Have tried a full repair of VS but no success.

Any ideas?

Thanks
Will

Answers

  • varyamereonvaryamereon USMember ✭✭

    This is the last log of Device Manager if it's helpful.

    [18-09-20 19:03:04.46] Android Device Manager version 1.0.624.20 (1.0.624.20+7361af75d162a09d91b3af3b287c187c805161d1)
        [18-09-20 19:03:04.46] Operating system: Windows 10 v10.0.17134 (Windows 10 Home; Microsoft Windows 10 v10.0.17134 (Windows 10 Home; 64-bit)), 64-bit
        [18-09-20 19:03:04.51] [AppInfo] Detected Android SDK path: C:\Program Files (x86)\Android\android-sdk
        [18-09-20 19:03:04.56] [ConfigManager] Config file path: <USER_HOME>\AppData\Local\Xamarin\AndroidDevices.exe_Url_xc3zboekagxckk4zetm2vqdih4yy0yl2\1.0.624.20\user.config
        [18-09-20 19:03:04.56] [AppInfo] Set ANDROID_SDK_ROOT: C:\Program Files (x86)\Android\android-sdk
        [18-09-20 19:03:04.57] Unhandled exception occured
        [18-09-20 19:03:04.57] System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
           at System.Xml.XmlTextReaderImpl.Throw(Exception e)
           at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
           at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
           at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
           at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
           at System.Xml.XmlTextReaderImpl.Read()
           at System.Xml.XmlReader.MoveToContent()
           at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
           at System.Xml.Linq.XElement.Load(String uri, LoadOptions options)
           at Xamarin.Installer.AndroidSDK.Manager.ConfigManager.LoadProperties()
           at Xamarin.Installer.AndroidSDK.Manager.Helper..ctor(String cacheFolder)
           at Xamarin.Installer.AndroidSDK.Manager.AndroidSDKManager.get_Helper()
           at Xamarin.Installer.AndroidSDK.Manager.AndroidSDKManager.Initialize(IProgressMonitorFactory progressMonitorFactory, ILogAdapter logger)
           at Xamarin.DeviceManager.AppInfo.Init()
           at Xamarin.DeviceManager.XamarinAndroidDeviceManagerApplicationBase.App_Startup(Object sender, StartupEventArgs e)
           at System.Windows.Application.OnStartup(StartupEventArgs e)
           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)
           at System.Windows.Threading.DispatcherOperation.InvokeImpl()
           at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Windows.Threading.DispatcherOperation.Invoke()
           at System.Windows.Threading.Dispatcher.ProcessQueue()
           at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
           at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
           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)
           at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
           at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
           at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
           at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
           at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
           at System.Windows.Application.RunDispatcher(Object ignore)
           at System.Windows.Application.RunInternal(Window window)
           at System.Windows.Application.Run(Window window)
           at Xamarin.DeviceManager.XamarinAndroidDeviceManagerApplicationBase.OnStartup(StartupEventArgs e)
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
           at Xamarin.DeviceManager.XamarinAndroidDeviceManagerApplicationBase.Main(String[] args)
        [18-09-20 19:03:04.57] Runtime terminating: True
    
Sign In or Register to comment.