本文介绍了部署失败错误:Mono.AndroidTools.InstallFailedException:失败 [INSTALL_FAILED_UPDATE_INCOMPATIBLE]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我的应用程序没有错误,但是当我尝试调试应用程序时,部署失败且没有错误并给我以下输出:My application has no error, but when I try to debug the application then deploy fail with no error and give me this output::部署失败1> Mono.AndroidTools.InstallFailedException: 失败 [INSTALL_FAILED_UPDATE_INCOMPATIBLE]1> 在 Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)1> 在 Mono.AndroidTools.AndroidDevice.c__DisplayClass90_0.b__0(Task1 t)1>在 System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()1> 在 System.Threading.Tasks.Task.Execute()1>InstallPackageAssemblies"任务意外失败.1>System.AggregateException:发生一个或多个错误.---> Xamarin.AndroidTools.AndroidDeploymentException: InternalError ---> Mono.AndroidTools.InstallFailedException: 失败 [INSTALL_FAILED_UPDATE_INCOMPATIBLE]1> 在 Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)1> 在 Mono.AndroidTools.AndroidDevice.c__DisplayClass90_0.b__0(Task1 t)1>在 System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()1> 在 System.Threading.Tasks.Task.Execute()1> --- 内部异常堆栈跟踪结束---1> 在 Xamarin.AndroidTools.AndroidDeploySession.d__99.MoveNext()1>--- 从上一个抛出异常的位置开始的堆栈跟踪结束---1> 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)1> 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)1> 在 Xamarin.AndroidTools.AndroidDeploySession.d__98.MoveNext()1> --- 内部异常堆栈跟踪结束---1> 在 System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)1> 在 System.Threading.Tasks.Task.Wait(Int32 毫秒超时,CancellationToken 取消令牌)1> 在 System.Threading.Tasks.Task.Wait()1> 在 Xamarin.Android.Tasks.InstallPackageAssemblies.Execute()1> 在 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()1> 在 Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()1>--->(内部异常 #0)Xamarin.AndroidTools.AndroidDeploymentException:InternalError ---> Mono.AndroidTools.InstallFailedException:失败 [INSTALL_FAILED_UPDATE_INCOMPATIBLE]1> 在 Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)1> 在 Mono.AndroidTools.AndroidDevice.c__DisplayClass90_0.b__0(Task1 t)1>在 System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()1> 在 System.Threading.Tasks.Task.Execute()1> --- 内部异常堆栈跟踪结束---1> 在 Xamarin.AndroidTools.AndroidDeploySession.d__99.MoveNext()1>--- 从上一个抛出异常的位置开始的堆栈跟踪结束---1> 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)1> 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)1> 在 Xamarin.AndroidTools.AndroidDeploySession.d__98.MoveNext()1>构建失败.` :Deployment failed 1>Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] 1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass90_0.b__0(Task1 t) 1> at System.Threading.Tasks.ContinuationTaskFromResultTask1.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: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] 1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass90_0.b__0(Task1 t) 1> at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke() 1> at System.Threading.Tasks.Task.Execute() 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.InstallFailedException: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] 1> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 1> at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass90_0.b__0(Task1 t) 1> at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke() 1> at System.Threading.Tasks.Task.Execute() 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.`我不知道为什么会出现这个错误以及如何消除这个错误.我是 xamarin.android 的新手,因为不知道我到底要做什么.我试图从谷歌那里寻求帮助,但我无法得到它.前几天我一直被困在这里,有人可以帮助我吗.I have no idea why I am getting this and how can I remove this error. I am new in xamarin.android there for don't know what exactly I have to do. I try to take help from google but, I am not able to get it. Can one help me as I am stuck here from past few days.推荐答案INSTALL_FAILED_UPDATE_INCOMPATIBLE 发生在您的手机上已有调试版本并尝试覆盖发布版本,反之亦然.当您的新版本发生重大变化时,也可能会发生这种情况.INSTALL_FAILED_UPDATE_INCOMPATIBLE happens when you already have a debug version on your phone and try to overwrite release version, or vice versa. Also it may happen when you have major changes in your new build.转到设置和应用管理.您将找到带有包名称的应用,将其卸载,然后再次尝试部署.Go to settings and app management. You will find your app with a package name, uninstall it and then try deploying again.它应该可以解决问题. 这篇关于部署失败错误:Mono.AndroidTools.InstallFailedException:失败 [INSTALL_FAILED_UPDATE_INCOMPATIBLE]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-12 17:35