Appium fails on building Espresso driver

Hello, i’m trying to build Espresso but got the error, you can read the logs.
appium_log.log (28.4 KB)
I’m using:
Samsung Galaxy S22 with Android 14.0
Mac M1 Pro
JDK 21
Gradle 8.6

I have no idea what’s going on, so please help me if someone has an idea

Thank you in advance.