I use Expo 46.
I would like to change some config in my AndroidManifest so I run an npx expo prebuild that generates an android folder without error.
But then my eas build is not working anymore (it is if I don't run prebuild).
I get this error:
Failed to find 'build.gradle' file for project: /home/expo/workingdir/build/android/app.
Am I missing something?
Try running the
expo prebuildcommand with the--clearflag, which will clear any existing pre-build files before generating the new ones.This should ensure that the generated android folder includes the
build.gradlefile, and theeas buildcommand should be able to use this file to build the app.Alternatively, you can try running the eas build command without running the expo prebuild command first. This will use the original Android project files in your app, which should include the build.gradle file and allow the eas build command to work correctly.
How to run the eas build command without running expo prebuild first: