gpt4 book ai didi

visual-studio-2013 - xamarin 应用程序无法在 Visual Studio 2013 中部署

转载 作者:行者123 更新时间:2023-12-04 12:52:39 24 4
gpt4 key购买 nike

我尝试了更多来运行我的 Xamarin 应用程序。它成功构建,但在尝试调试时,出现以下异常。

据我所知,有一些错过的包裹,因为

Unexpected install output: Error: Could not access the Package Manager. Is the system running?



消息显示在部署状态消息下方。

调试输出
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 ==========

最佳答案

您是否使用基于 ARM 的模拟器(我遇到了同样的问题)?

如果是,那么它们非常慢,并且在启动它们之前无法部署应用程序。

使用基于 x86 的模拟器,这些不是那么快,但至少可以忍受。

在任何情况下(x86 或 ARM)首先启动你的模拟器,然后等到你看到主屏幕。

关于visual-studio-2013 - xamarin 应用程序无法在 Visual Studio 2013 中部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38093608/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com