Could not find or load main class org.gradle.wrapper.GradleWrapperMain

How to resolve this issue in eas build creation.

Running ‘./gradlew :app:bundleRelease’ in /build/workingdir/build/android

[stderr] Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Error: Gradle build failed with unknown error. Please see logs for the “Run gradlew” phase.