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;XAMARIN_ANDROID_v1_0;MOBILE;ANDROID;ANDROID_1;ANDROID_2;ANDROID_3;ANDROID_4;ANDROID_5;ANDROID_6;ANDROID_7;ANDROID_8;ANDROID_9;ANDROID_10;ANDROID_11;ANDROID_12;ANDROID_13;ANDROID_14;ANDROID_15;ANDROID_16;ANDROID_17;ANDROID_18;ANDROID_19;ANDROID_20;ANDROID_21;ANDROID_22;ANDROID_23 /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\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs obj\Release\TemporaryGeneratedFile_036C0B5B-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.0_102\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.0_102\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.FileWrite_OnWroteChunk(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.FileWrite_OnWroteChunk(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.d__99.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> --- 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.d__26.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.FileWrite_OnWroteChunk(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.d__99.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