update google-services.json doesn't update the app
See original GitHub issueDescribe the bug
When I update google-services.json
and then rebuild/install my app, the google services values in my app are not updated to reflect the google-services.json
changes.
I have to manually remove:
app/build/generated/res/google-services/debug/values/values.xml
app/build/intermediates/incremental/mergeDebugResources/merger.xml
app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
in order to see the updated values.
To Reproduce Steps to reproduce the behavior: Probably pretty obvious.
Expected behavior
If I update google-services.json
the next build of my app should include the changed values.
Screenshots N/A
Desktop (please complete the following information):
- Gradle version: I don’t really know
- Android Studio version: 3.6.3
- Plugin name and version: firebase?
Additional context
My particular case here is that if my firebase application ID is updated in google-services.json
, ./gradlew install[Debug]
does not update the application ID in the app.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:51
- Comments:16
Top Results From Across the Web
google-services.json file - do i have to update it after adding ...
Now i put analytics all over my code in andriod. I am using google analytics. Do i need to update this file ?...
Read more >The Google Services Gradle Plugin
Process the google-services.json file and produce Android resources that can be used in your application's code. See Adding the JSON File more information....
Read more >Download Firebase config file or object - Google Help
Go to your the Settings icon · In the Your apps card, select the package name of the app for which you need...
Read more >Android Installation - React Native Firebase
Once downloaded, place this file in the root of your project at android/app/google-services.json . The following instructions are also described on the ...
Read more >Add Firebase to your Android project
Download and then add the Firebase Android configuration file ( google-services.json ) to your app: ... What do you need to know about...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s under build/app/…
Instead you could run flutter clean
Just had to deal with this same issue. A simple clean was able to resolve it fortunately. Firebase Auth UI, Crashlytics, Analytics, none of it was working and this fixed it all in one go.