Android error package

I got strange error

UATHelper: Packaging (Android (DXT)): Caused by: java.lang.ExceptionInInitializerError: Exception org.codehaus.groovy.GroovyBugError [in thread “Daemon worker”]
UATHelper: Packaging (Android (DXT)): at org.codehaus.groovy.vmplugin.v7.Java7.(Java7.java:45)
UATHelper: Packaging (Android (DXT)): at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
UATHelper: Packaging (Android (DXT)): at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
UATHelper: Packaging (Android (DXT)): at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300)
UATHelper: Packaging (Android (DXT)): at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:103)
UATHelper: Packaging (Android (DXT)): at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:236)
UATHelper: Packaging (Android (DXT)): at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:546)
UATHelper: Packaging (Android (DXT)): at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:496)
UATHelper: Packaging (Android (DXT)): at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
UATHelper: Packaging (Android (DXT)): at org.codehaus.groovy.vmplugin.VMPluginFactory.createPlugin(VMPluginFactory.java:57)
UATHelper: Packaging (Android (DXT)): at org.codehaus.groovy.vmplugin.VMPluginFactory.(VMPluginFactory.java:39)
UATHelper: Packaging (Android (DXT)): … 128 more
UATHelper: Packaging (Android (DXT)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (DXT)): * What went wrong:
UATHelper: Packaging (Android (DXT)): Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
UATHelper: Packaging (Android (DXT)): > Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 [in thread “Daemon worker”]
UATHelper: Packaging (Android (DXT)): * Try:
UATHelper: Packaging (Android (DXT)): 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 (DXT)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (DXT)): BUILD FAILED in 10s
UATHelper: Packaging (Android (DXT)): ERROR: cmd.exe failed with args /c “C:\Users\darkness\Documents\Unreal Projects\EndlessRunner\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleRelease
UATHelper: Packaging (Android (DXT)): (see C:\Users\darkness\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE_4.27\Log.txt for full exception trace)
UATHelper: Packaging (Android (DXT)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (DXT)): BUILD FAILED
PackagingResults: Error: Unknown Error

Any Luck with this?

Have you found a solution for this problem?
Because I have the same Problem.

I’m also having this problem. I’m using a small project started in 5.1 on Windows.