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.

any news on this? im unable to create a successful android build too

it looks like gradle wrapper is missing in your repo

Hi @systemcheck

Please provide more info.

How are you building? Is this managed or bare? If you create a new app with expo init and try to build that, does it work?

Depending on your situation, the following answer or some of the other answers to that question might help:

I see @wkozyra has answered too :sweat_smile:

The expo build works on android, the eas not. There are many errors which pointed to react-native-unimodules (not found, or and modules not found)

Given that you say that expo build:android works, this is a managed app. So gradle etc. should not be something you need to worry about.

What dependencies do you have installed?