我已經設置了新的 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?
現在我又遇到了同樣的問題:) –