title: Xamarin.Android Preview Problem in VS for Mac
body: <p>When I targeted <strong>Android 9.0 (Pie)</strong> in Android part of Xamarin.Forms app the <strong>Preview of UI</strong> produces an error and show nothing.</p>
  
  <p><a href="https://i.stack.imgur.com/yM4ls.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yM4ls.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/xmR5J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xmR5J.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/iCMCv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iCMCv.png" alt="enter image description here"></a></p>
  
  <p>Open a new Xamarin.Forms App in VS For Mac then update all of the Android Packages. After that, target your app to Android 9.0 as I described above. Finally you should run one time your app in an Android Emulator and you will see the error in Preview Tool in <strong>VS for Mac</strong>. The problem isn't in app. App is running well but I can't see preview of the UI to change things immediately.</p>
  
  <p><strong>(Error: android/view/View.OnUnhandledKeyEventListener)</strong></p>