我知道之前有人问过,但其他问题没有答案。我也尝试过所有我能解决的问题,但我没有运气。
2>Detecting installed packages...
2>Removing old runtime: Mono.Android.DebugRuntime...
2>Target device is armeabi-v7a.
2>Installing the Mono shared runtime (debug - 1466444585)...
2>:Deployment failed
2>Mono.AndroidTools.AdbException: No such file or directory
2> at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token)
2> at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result)
2> at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
2>The "InstallPackageAssemblies" task failed unexpectedly.
2>System.AggregateException: One or more errors occurred. ---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.AdbException: No such file or directory
2> at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token)
2> at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result)
2> at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
2> --- End of inner exception stack trace ---
2> at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2> at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>c__async0.MoveNext()
2> --- End of inner exception stack trace ---
2> at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
2> at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
2> at System.Threading.Tasks.Task.Wait()
2> at Xamarin.Android.Tasks.InstallPackageAssemblies.Execute()
2> at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2> at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
2>---> (Inner Exception #0) Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.AdbException: No such file or directory
2> at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token)
2> at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result)
2> at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
2> --- End of inner exception stack trace ---
2> at Xamarin.AndroidTools.AndroidDeploySession.<RunLoggedAsync>c__async1.MoveNext()
2>--- End of stack trace from previous location where exception was thrown ---
2> at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2> at Xamarin.AndroidTools.AndroidDeploySession.<StartAsync>c__async0.MoveNext()<---
制作全新的空白应用时出现此错误。我已经尝试重新安装所有内容,更改java版本,获取不同版本的sdk以及从sdk管理器安装我可以使用的每个版本。有什么别人可以建议我试试吗?如果它有助于我在Windows 10上使用Visual Studio 2015
答案 0 :(得分:1)
验证您是否以管理员身份运行Android SDK,模拟器,Visual Studio等。这为我解决了这个问题。 &#34;以管理员身份运行&#34;!
答案 1 :(得分:1)
以下是对我有用的解决方案:
然后,仿真器将可以正常运行。这是一个问题,该错误是几个月前在github上报告的,这里是reference
答案 2 :(得分:0)
在试图找到这个问题的答案两周后,我想我已经解决了。我注意到我的模拟器会启动并且永远不会通过android启动屏幕,并认为这将是我尝试修复它的下一步。所以我安装了revo卸载程序并完全卸载了Android SDK。重新安装它,并最终得到不同的错误,似乎很常见,很容易通过简单的谷歌搜索修复。我希望将来可以帮助别人。