[expo prebuild]: Error: [android.dangerous]: withAndroidDangerousBaseMod: Path to google-services.json is not defined. Please specify the expo.android.googleServicesFile
field in app.json.
#2141
Labels
needs review
Issue is ready to be reviewed by a maintainer
Build/Submit details page URL
No response
Summary
My project is managed and the ios/android folders are added to .gitignore. I'm trying to use Firebase and set up the project the way that it picks up google-services files from the root if it's running locally (the files are gitignored); and use Secret files on EAS if building on CI. It works locally but on EAS
expo prebuild
fails within the commandeas build --platform all --non-interactive --profile production --auto-submit
with the following error:My
app.config.js
is:.env.local
EAS Build logs - Spin up build environment
EAS Build logs - read app config
So the variables are expanded correctly
Since everything is defined, I don't expect the error. And since it is defined in the
app.config.js
, why does it look at the non-existentapp.json
?Kind regards
Managed or bare?
Managed
Environment
expo-env-info (it seems like Expo Workflow: bare is incorrect, although the project is managed):
expo-doctor:
Error output
Error: [android.dangerous]: withAndroidDangerousBaseMod: Path to google-services.json is not defined. Please specify the
expo.android.googleServicesFile
field in app.jsonReproducible demo or steps to reproduce from a blank project
The text was updated successfully, but these errors were encountered: