Xamarin.Forms预览器“连接已关闭" [英] Xamarin.Forms Previewer "Connection is closed"

查看:156
本文介绍了Xamarin.Forms预览器“连接已关闭"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需打开Xamarin.Forms预览器,它就会显示出了点问题,连接已关闭" 它是全新的Visual Studio 2017安装和空白的Xamarin Forms项目.

Just opened the Xamarin.Forms Previewer and it says "Something went wrong, Connection is closed" Its a fresh Visual Studio 2017 install and a blank Xamarin Forms Project.

这是屏幕截图

有人知道如何解决这个问题吗?

Does anyone know how to solve this problem?

推荐答案

这是对我有用的.

  1. 确保XF预览器中的Android & Phoneselected.
  2. 现在Close XF预览器.
  3. 确保您的App.Android project is marked as the start up project.
  4. Restart VS
  5. 再次
  6. Open预览器.
  1. Make sure Android & Phone are selected in XF previewer.
  2. Now Close XF Previewer.
  3. Make sure your App.Android project is marked as the start up project.
  4. Restart VS
  5. Open the previewer again.

我不知道上面的内容为什么对我有用,但是,当它起作用时,我要向谁抱怨.

I have no idea why the above worked for me, but, who am I to complain when its working.

这篇关于Xamarin.Forms预览器“连接已关闭"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆