I built a environment for dev and product.
We can switch firebase project by environment variables.
When I try doing eas build --platform android, the error caused as below.
I understand that the development build use the Google-services.json of product.
That’s why they can not find package name in the file.
The json is created by Firebase.
I found the suggestion to solve it in Firebase, that is used for Android studio, I guess.
app/ google-services.json src/development/google-services.json src/release/google-services.json
Do you know the way to switch google-services.json in Expo managed project?
Error code in EAS build
Parsing json file: /build/workingdir/build/android/app/google-services.json
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
794 actionable tasks: 794 executed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseGoogleServices'.
> No matching client found for package name 'com.mapkid.rounds_test2'
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5m 41s