Xamarin Live Player gives error when running app on android device

When I try to connect my android device using Xamarin live player then after successful build nothing happens on device. When I check output in visual studio then every time I got

Attempting connection to debug address: 10.83.xxx.xxx:37847
Error while trying to connect directly to the device: System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at Xamarin.Player.Remote.DeviceDeployer.<>c__DisplayClass30_0.b__0() in C:\d\lanes\5156\1631433e\source\xamarinvs\External\Xamarin.Player.Remote\Source\Xamarin.Player.Remote\DeviceDeployer.cs:line 431
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Xamarin.Player.Remote.DeviceDeployer.d__30.MoveNext() in C:\d\lanes\5156\1631433e\source\xamarinvs\External\Xamarin.Player.Remote\Source\Xamarin.Player.Remote\DeviceDeployer.cs:line 419
Connected to: 192.168.xxx.xxx:42057
Deploying C:\Users...\Documents\Visual Studio 2017\Projects\LIS\LIS\LIS.Android\LIS.Android.csproj
Got device info: Xiaomi Redmi Note 3 Player (Android) @ 10.83.xxx.xxx:37847
Synchronizing files
Synchronizing C:\Users...\Documents\Visual Studio 2017\Projects\LIS\LIS\LIS.Android\LIS.Android.csproj (10942 bytes)
Synchronizing C:\Users...\Documents\Visual Studio 2017\Projects\LIS\LIS\LIS\LIS.csproj (8096 bytes)
Synchronizing C:\Users...\Documents\Visual Studio 2017\Projects\LIS\packages\XamarinForms.CardView.1.1.1\lib\portable45-net45+win8+wp8+wpa81\CardView.dll (12288 bytes)
Synchronizing C:\Users...\Documents\Visual Studio 2017\Projects\LIS\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Extensions.dll (29912 bytes)
Synchronizing C:\Users...\Documents\Visual Studio 2017\Projects\LIS\packages\Microsoft.Net.Http.2.2.29\lib\portable-net40+sl4+win8+wp71+wpa81\System.Net.Http.Primitives.dll (22232 bytes)
Synchronizing C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETPortable\v4.5\Profile\Profile259\Microsoft.CSharp.dll (22480 bytes)
Building and running...
Built with 0 messages
Could not connect to the debugger.
Could not connect to the debugger.

Best Answer

    Accepted Answer

    The problem is solved after updating Visual studio 2015 preview 15.4 version 3.0 to 5.0.


  • RamprasadKRamprasadK USMember ✭✭

    May be your network connection is not good.
    Your pc and mobile device both should be in same network without disconnecting.

    Accepted Answer

    The problem is solved after updating Visual studio 2015 preview 15.4 version 3.0 to 5.0.

  • BanuXmBanuXm Member ✭✭

    I had the same problem and solved by updating Visual studio 2015 preview 15.4 version 3.0 to 5.0.

Sign In or Register to comment.