xamarin调试android部署到模拟器错误记录:Deployment failed Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager. Is the system running?

时间:2022-01-14 07:55:30

问题记录:

1.生成 ok。
2.昨天也是能部署到模拟器的。
但是今天部署的时候就报了这样的一个错误
Deployment failed
Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager. Is the system running?
Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) 位置 E:\A_work\1824\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:

如图:
xamarin调试android部署到模拟器错误记录:Deployment failed Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager.  Is the system running?

解决问题:
1.重启模拟器,模拟器可能没有运行成功,模拟器启动慢
2.重启vs,没什么好说干就完事了

总结:
这个问题出现太敷衍了,并不是经常遇到。可能忘了,做个笔记
有兴趣的可以关注一下我的微信公众号[dotNet全栈开发],分享一些编程相关的经典文章
xamarin调试android部署到模拟器错误记录:Deployment failed Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager.  Is the system running?