Xamarin application could not be deployed to Visual Studio 2013

I tried running the Xamarin app more. It works successfully, but the following ecxceptions occur when trying to debug.

As I understand it, there are some missing packages because

Unexpected installation output: Error: Could not access Package Manager. Does the system work?

Message

appears below the deployment status message.

Debug output

1>_PrimaryCpuAbi=armeabi-v7a 1>Detecting installed packages... 1>Target device is armeabi-v7a. 1>Installing the Mono shared runtime (debug - 1466176850)... 1>10% ... 3776kb of 37460kb copied 1>20% ... 7552kb of 37460kb copied 1>30% ... 11264kb of 37460kb copied 1>40% ... 15040kb of 37460kb copied 1>50% ... 18752kb of 37460kb copied 1>60% ... 22528kb of 37460kb copied 1>70% ... 26240kb of 37460kb copied 1>80% ... 30016kb of 37460kb copied 1>90% ... 33728kb of 37460kb copied 1>100% ... 37460kb of 37460kb copied 1>:Deployment failed 1>Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager. Is the system running? 1> 1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass90_0.<InstallPackage>b__0(Task`1 t) 1> at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke() 1> at System.Threading.Tasks.Task.Execute() 1>The "InstallPackageAssemblies" task failed unexpectedly. 1>System.AggregateException: One or more errors occurred. ---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager. Is the system running? 1> 1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass90_0.<InstallPackage>b__0(Task`1 t) 1> at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke() 1> at System.Threading.Tasks.Task.Execute() 1> --- End of inner exception stack trace --- 1> at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>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.<StartAsync>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.<ExecuteInstantiatedTask>d__20.MoveNext() 1>---> (Inner Exception #0) Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager. Is the system running? 1> 1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass90_0.<InstallPackage>b__0(Task`1 t) 1> at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke() 1> at System.Threading.Tasks.Task.Execute() 1> --- End of inner exception stack trace --- 1> at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>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.<StartAsync>d__98.MoveNext()<--- 1>`enter code here` 1>Done building project "App1.csproj" -- FAILED. 1>Build FAILED. 1> ========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== 
+6
source share

All Articles