The following error occurs when running eas build --platform android
Running './gradlew :app:bundleRelease' in /home/expo/workingdir/build/android
[stderr] bash: ./gradlew: Permission denied
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.
Expo SDK: 45.0.0
Workflow: managed
eas-cli version: eas-cli/0.58.0 win32-x64 node-v16.14.2
Is this issue related to eas or do I have to change the permission of gradlew file in my local project? I have android and ios folders generated from expo prebuild
command.
Update: Fixed the issue by running expo prebuild -p android --clean
and then building with eas.