Xamarin.Forms预览器“连接已关闭" [英] Xamarin.Forms Previewer "Connection is closed"
本文介绍了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?
推荐答案
这是对我有用的.
- 确保XF预览器中的
Android & Phone
是selected
. - 现在
Close
XF预览器. - 确保您的
App.Android project is marked as the start up project
. -
Restart
VS
再次 -
Open
预览器.
- Make sure
Android & Phone
areselected
in XF previewer. - Now
Close
XF Previewer. - Make sure your
App.Android project is marked as the start up project
. Restart
VSOpen
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屋!
查看全文