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?
Run the
npx expo-updatesin the root of your project in order to update thebuild.gradlefile with the necessary changes.By the way, as I saw your remarks under the other posts: The
expo prebuildcommand generates an Android project in theandroiddirectory, which contains thebuild.gradlefile that is used by theexpo build:androidcommand. Theeas buildcommand is a shorthand for theexpo build:androidcommand, so it expects the Android project to be present in theandroiddirectory.If you run
expo prebuildand theneas build, theeas buildcommand should be able to find thebuild.gradlefile and build the Android app successfully.