title: Xamarin - Designer does not load
body: <p>I am trying to create a new Xamarin (blank app) project, and when I am opening the file "Main.axml" I get this error:</p>
  
  <p><a href="https://i.stack.imgur.com/kUbfA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kUbfA.png" alt="enter image description here"></a></p>
  
  <p>The error-text inside this "messagebox" is this:</p>
  
  <blockquote>
    <p>System.ArgumentNullException: Value cannot be null. Parameter name: o 
    at
    System.Runtime.InteropServices.Marshal.GetIUnknownForObjectNative(Object
    o, Boolean onlyInContext)    at
    Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.UpdateD3DImageFromSharedSurface()
    in
    E:\A_work\102\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:line
    140    at
    Xamarin.AndroidDesigner.Windows.WindowsAndroidSurfaceRenderer.RenderDesignerItemVisual(DesignerItem
    item) in
    E:\A_work\102\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner.Windows\WindowsAndroidSurfaceRenderer.cs:line
    131    at
    Xamarin.Designer.Windows.WpfSurfaceRenderer.QueueRender(DesignerItem
    item) in
    E:\A_work\102\s\Xamarin.Designer\Xamarin.Designer.Windows\WpfSurfaceRenderer.cs:line
    361    at
    Xamarin.AndroidDesigner.AndroidDesignerSurface.HandleSessionImageChanged(Object
    sender, EventArgs e) in
    E:\A_work\102\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSurface.cs:line
    229    at
    Xamarin.AndroidDesigner.AndroidDesignerSession.OnImageChanged() in
    E:\A_work\102\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:line
    2037    at
    Xamarin.AndroidDesigner.AndroidDesignerSession.HandleRendered(Object
    sender, EventArgs e) in
    E:\A_work\102\s\Xamarin.Designer.Android\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner\AndroidDesignerSession.cs:line
    1284
    --- End of stack trace from previous location where exception was thrown ---    at
    Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception
    exceptionObject)</p>
  </blockquote>
  
  <p>I found several topics through google that talk about the same issue, but either none of them explain if and how they solve the issue, or he solution was not working. If someone has encounter this error, it would be great to give me the solution for it.</p>
  
  <p>EDIT: I use:
  <strong>1)</strong> Visual Studio Community 2017 - Version 15.6.6   <strong>2)</strong> JDK Version: 1.8.0_171  <strong>3)</strong> Xamarin Version: 4.9.0.753 <strong>4)</strong> Xamarin Designer Version: 4.10.96</p>