when i try to compile apk i get this error can you help me?
UATHelper: Packaging (Android (ASTC)): at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
UATHelper: Packaging (Android (ASTC)): at org.codehaus.groovy.vmplugin.VMPluginFactory.createPlugin(VMPluginFactory.java:57)
UATHelper: Packaging (Android (ASTC)): at org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:39)
UATHelper: Packaging (Android (ASTC)): … 128 more
UATHelper: Packaging (Android (ASTC)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)): * What went wrong:
UATHelper: Packaging (Android (ASTC)): Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
UATHelper: Packaging (Android (ASTC)): > Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 [in thread “Daemon worker”]
UATHelper: Packaging (Android (ASTC)): * Try:
UATHelper: Packaging (Android (ASTC)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
UATHelper: Packaging (Android (ASTC)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 2s
UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c “D:\Unrial Progetti\Macchine\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug
UATHelper: Packaging (Android (ASTC)): (see C:\Users\Stef\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+unreal+UE_5.0\Log.txt for full exception trace)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 1m 2s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: Unknown Error
Thank you