2017-06-05 49 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工作室上......我很抱歉。 –

相關問題