Xamarin.Forms Previewer - An android application project must reference a project containing this xaml file in order to render in the previewer

后端 未结 6 1134
孤城傲影
孤城傲影 2021-02-20 01:53

I\'m getting the following error when trying to preview XAML documents via the Xamarin.Forms Previewer while in Visual Studio.

An Android Application proj

6条回答
  •  走了就别回头了
    2021-02-20 01:58

    This problem can occur for a number of issues. Main problem is that for some reason Android's project can't build or be run inside Xamarin.

    For me, the issue was that the latest JDK was not installed. My JRE was, but not JDK. Once I reinstalled JDK and restarted Visual Studio. All was well.

提交回复
热议问题