2017-06-05 63 views
1

我尝试使用xamarin android blank app创建新项目。当我尝试打开main.axml布局,它在下面的错误:Xamarin Android Visual Studio布局在创建新空白应用程序时未渲染

System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host 
    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) 
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
    --- End of inner exception stack trace --- 
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
    at Xamarin.AndroidDesigner.Java.JavaCommunicationContext.ReadMessageLoop() in C:\d\lanes\4699\1be4f0c9\source\xamarinvs\External\md-addins\MonoDevelop.MonoDroid\Xamarin.AndroidDesigner\Xamarin.AndroidDesigner.Java\JavaCommunicationContext.cs:line 227 
+0

您的Xamarin的版本号是多少? –

+0

您是否尝试过使用与源代码(文本)编辑器或编码一起打开它? –

+0

xamarin版本Xamarin for Visual Studio 4.5 –

回答

0

同样的问题对我来说,当我打开布局。它应该是xamarin的版本问题(检查这个帖子:

Unable to render xamarin android layout

我ckeck那个版本,它是4.5.0.476,同为支柱上方 我会尝试降级这个版本,我会及时通知您

+0

您是否管理过我已经放弃了Xamarin,并开始使用Android工作室 –

+0

我放弃了Xamarin和很久以前,droid不可能将xamarin的版本降级到试图使其工作,并且在他们的论坛上没有支持。所以我喜欢你,在android工作室上......我很抱歉。 –

相关问题