我已经设置了新的 Xamarin.Forms项目。我想构建它并将其部署到模拟器或Android设备,但它不起作用。在Visual Studio的Outputwindow,显示以下错误:Xamarin部署不适用于Android
The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = true).
更新:
如果我看在构建日志我可以找到以下内容:
2>Mono.AndroidTools.InstallFailedException: Unexpected install output: Error: Could not access the Package Manager. Is the system running?
2> bei Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
2> bei Mono.AndroidTools.AndroidDevice.c__AnonStoreyD.<>m__0(Task`1 t)
2> bei System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
2> bei System.Threading.Tasks.Task.Execute()
2>Deployment failed because of an internal error: Unexpected install output: Error: Could not access the Package Manager. Is the system running?
现在我又遇到了同样的问题:) –