question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

update google-services.json doesn't update the app

See original GitHub issue

Describe 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:open
  • Created 3 years ago
  • Reactions:51
  • Comments:16

github_iconTop GitHub Comments

6reactions
Ivy-Walobwacommented, Sep 7, 2020

When you manually remove that information, what file are you removing that information from? I’m in the android studio and I don’t see 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

It’s under build/app/…

Instead you could run flutter clean

4reactions
travisw88commented, Sep 25, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found