locked
Deployment Failure RRS feed

  • Question

  • User524 posted

    Hi fellow Android programmer,

    Under a previous Mararin.Android release, the deployment worked fine. But now I'm getting the following failure:

    1>Starting deploy Samsung Nexus S ... 1>Deploying Samsung Nexus S ... 1>Build started. 1>@(Content) build action is not supported 1>C:\Program Files (x86)\MSBuild\14.0\bin\csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;XAMARINANDROIDv10;MOBILE;ANDROID;ANDROID1;ANDROID2;ANDROID3;ANDROID4;ANDROID5;ANDROID6;ANDROID7;ANDROID8;ANDROID9;ANDROID10;ANDROID11;ANDROID12;ANDROID13;ANDROID14;ANDROID15;ANDROID16;ANDROID17;ANDROID18;ANDROID19;ANDROID20;ANDROID21;ANDROID22;ANDROID23 /errorendlocation /preferreduilang:en-US /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\Java.Interop.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0 1>

    ...

    Resources\Resource.Designer.cs "C:\Users\King\AppData\Local\Temp\MonoAndroid,Version=v6.0.AssemblyAttributes.cs" obj\Release\TemporaryGeneratedFileE7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs obj\Release\TemporaryGeneratedFile036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs obj\Release\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs 1>'Canvas.GetMatrix(Matrix)' is obsolete: 'deprecated' 1>'TimePicker.CurrentHour' is obsolete: 'deprecated' 1>'TimePicker.CurrentMinute' is obsolete: 'deprecated' 1>'TimePicker.CurrentHour' is obsolete: 'deprecated' 1>'TimePicker.CurrentMinute' is obsolete: 'deprecated' 1>SvrBook -> C:\Users\King..Ministry\Code Projects\Service Book DEV\SvrBook\bin\Release\SvrBook.dll 1> Processing: obj\Release\res\layout\addaddress.xml 1> Processing: obj\Release\res\layout\addphoto.xml

    ...

    1> Processing: obj\Release\res\layout\webmap.xml 1> Processing: obj\Release\res\values\strings.xml 1>C:\Program Files (x86)\Java\jdk1.8.0102\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\King\AppData\Local\Xamarin\Mono for Android\debug.keystore" 1>C:\Program Files (x86)\Java\jdk1.8.0102\bin\jarsigner.exe -keystore "C:\Users\King\AppData\Local\Xamarin\Mono for Android\debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Release\kcwebapps.SrvBook-Signed-Unaligned.apk "C:\Users\King..Ministry\Code Projects\Service Book DEV\SvrBook\obj\Release\android\bin\kcwebapps.SrvBook.apk" androiddebugkey 1>No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2043-07-20) or after any future revocation date. 1>C:\Users\King\AppData\Local\Android\android-sdk\build-tools\24.0.0-preview\zipalign.exe 4 "C:\Users\King..Ministry\Code Projects\Service Book DEV\SvrBook\bin\Release\kcwebapps.SrvBook-Signed-Unaligned.apk" "bin\Release\kcwebapps.SrvBook-Signed.apk" 1>:Deployment failed 1>Mono.AndroidTools.AdbException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.IO.IOException: Unable to write data to 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 1> at System.Net.Sockets.Socket.EndSend(IAsyncResult asyncResult) 1> at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult) 1> --- End of inner exception stack trace --- 1> at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult) 1> at Mono.AndroidTools.Adb.AdbSyncClient.FileWriteOnWroteChunk(IAsyncResult result) 1> --- End of inner exception stack trace --- 1> at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token) 1> at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result) 1> at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) 1>The "InstallPackageAssemblies" task failed unexpectedly. 1>System.AggregateException: One or more errors occurred. ---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.AdbException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.IO.IOException: Unable to write data to 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 1> at System.Net.Sockets.Socket.EndSend(IAsyncResult asyncResult) 1> at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult) 1> --- End of inner exception stack trace --- 1> at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult) 1> at Mono.AndroidTools.Adb.AdbSyncClient.FileWriteOnWroteChunk(IAsyncResult result) 1> --- End of inner exception stack trace --- 1> at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token) 1> at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result) 1> at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) 1> --- End of inner exception stack trace --- 1> at Xamarin.AndroidTools.AndroidDeploySession.d99.MoveNext() 1>--- End of stack trace from previous location where exception was thrown --- 1> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 1> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 1> at Xamarin.AndroidTools.AndroidDeploySession.d98.MoveNext() 1> --- End of inner exception stack trace --- 1> at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) 1> at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) 1> at System.Threading.Tasks.Task.Wait() 1> at Xamarin.Android.Tasks.InstallPackageAssemblies.Execute() 1> at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() 1> at Microsoft.Build.BackEnd.TaskBuilder.d26.MoveNext() 1>---> (Inner Exception #0) Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.AdbException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.IO.IOException: Unable to write data to 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 1> at System.Net.Sockets.Socket.EndSend(IAsyncResult asyncResult) 1> at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult) 1> --- End of inner exception stack trace --- 1> at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult) 1> at Mono.AndroidTools.Adb.AdbSyncClient.FileWriteOnWroteChunk(IAsyncResult result) 1> --- End of inner exception stack trace --- 1> at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token) 1> at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result) 1> at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) 1> --- End of inner exception stack trace --- 1> at Xamarin.AndroidTools.AndroidDeploySession.d99.MoveNext() 1>--- End of stack trace from previous location where exception was thrown --- 1> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 1> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 1> at Xamarin.AndroidTools.AndroidDeploySession.d_98.MoveNext()<--- 1> 1>Build FAILED. 1> ========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

    Thank you for your assistances,

    King

    Tuesday, February 28, 2017 8:19 PM

All replies

  • User524 posted

    This problem went away after updating to a new version. But a new problem has occurred. VS 2015 Xamarin.Android update 4.1.2.784 is not displaying the connected device dropdown box

    Upon updating Xamarin Android from version 4.1.2.18 the latest version 4.3.0.784 the android device dropdown selection box has disappear. I also attached a phone but a get a fail to deploy error and it states please select a device. But there's no selection dropdown box. Xamarin Studio is listing the phone and deploying the app to it OK. Thanks,

    King

    Friday, March 3, 2017 5:31 AM