I've been working on setting up a new laptop. Installed the Azul Zulu 11 JDK, cloned my repository (which builds fine on an x64 machine), and ran this command. It failed with the following output. The warning later culminates in an error relating to the JNA. The java.lang.UnsatisfiedLinkError seems troubling.
Build #IU-213.6777.52, built on January 27, 2022
Subscription is active until July 30, 2022.
Runtime version: 11.0.13+7-b1751.25 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
% ./gradlew build
> Task :buildSearchableOptions
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to method java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2022-02-17 19:29:40,120 [ 125] WARN - #com.intellij.idea.Main - Unable to load JNA library (OS: Mac OS X 12.2.1)
java.lang.UnsatisfiedLinkError: /Users/justin/projects/FacilityIntellij/build/idea-sandbox/system/tmp/jna17794018379048940657.tmp: dlopen(/Users/justin/projects/FacilityIntellij/build/idea-sandbox/system/tmp/jna17794018379048940657.tmp, 0x0001): tried: '/Users/justin/projects/FacilityIntellij/build/idea-sandbox/system/tmp/jna17794018379048940657.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e')), '/usr/lib/jna17794018379048940657.tmp' (no such file)