ExportSignedPackage_error

Running Processing 4.1.1 on a Mac (OS 11.6). In the past could export Android apps (Export Signed Package), but has stopped working with later releases. Appears to be a gradle error. Error messages are shown below; I’m unable to post lengthy error message which is too large to fit in log window and won’t copy to clipboard.