Visual Studio for Mac 2019:更新后无法在Android上构建和部署

问题描述

我在Mac上工作,并且刚刚将 Visual Studio for Mac 20109 更新到了最新版本: 8.8版(内部版本2913)

此后,我将不再能够构建/部署所使用的 Android 应用。

我创建了一个空的Xamarin.Forms新项目,但是遇到了同样的问题。

输出为:

google.api_core.exceptions.NotFound: 404 GET https://storage.googleapis.com/download/storage/v1/b/origin-ci-test/o/origin-ci-test%2Fpr-logs%2Fpull%2Fopenshift_release%2F12691%2Frehearse-12691-pull-ci-operator-framework-operator-marketplace-release-4.6-okd-images%2F1326467646144647168%2Ffinished.json?alt=media: No such object: origin-ci-test/origin-ci-test/pr-logs/pull/openshift_release/12691/rehearse-12691-pull-ci-operator-framework-operator-marketplace-release-4.6-okd-images/1326467646144647168/finished.json: ('Request Failed with status code',404,'Expected one of',<HTTPStatus.OK: 200>,<HTTPStatus.PARTIAL_CONTENT: 206>)

解决方法

您有这行:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/apksigner/ApkSignerTool has been compiled by a more recent version of the Java Runtime (class file version 53.0),this version of the Java Runtime only recognizes class file versions up to 52.0

也许您应该在系统和项目中检查Java版本。请尝试对其进行更新,然后重试,因为它们的版本号可能不同。