Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
brianjmurrell opened this issue May 19, 2020 · 17 comments
Closed

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

brianjmurrell opened this issue May 19, 2020 · 17 comments

Comments

@brianjmurrell
Copy link

brianjmurrell commented May 19, 2020

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.

@Ivy-Walobwa
Copy link

I had the same issue and followed your steps. It worked. Thank you. I was getting frustrated.

@brianjmurrell
Copy link
Author

@Ivy-Walobwa Glad it worked for you. Shame that this 6 month old bug has not even had a triage comment added to it.

@Awdjr
Copy link

Awdjr commented 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

@Ivy-Walobwa
Copy link

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

@lzzy12
Copy link

lzzy12 commented Dec 13, 2020

I just had Exactly same problem, I uploaded the app on play store with a new firebase project (separate from development project). I thought just replacing google-services.json will do, but I was scratching my head why google sign in is not working even after adding the sha keys from play console. Turns out I added the SHA keys to the firebase project which was not even being used. Had to flutter clean for the change to take effect

delaneyb added a commit to delaneyb/nativescript-plugin-firebase that referenced this issue Dec 18, 2020
@junaid-umar
Copy link

Facing the same issue

I Had to remove 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

@HarshCodonnier
Copy link

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

Thanks. flutter clean command work for me.

@abhinavgl98
Copy link

abhinavgl98 commented Jun 15, 2021

I deleted the complete build folder:- app/build

Delete old google-services.json file from these locations:-
app\src\debug\google-services.json
app\src\google-services.json
app\google-services.json

Then add a new google-services.json file under app/
And then it worked for me.

@prithvish111
Copy link

prithvish111 commented Jul 17, 2021

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

Thank you, this helped me.

@ngattusohw
Copy link

It is absolutely insane that it has been over a year and this has not been properly addressed.

@travisw88
Copy link

travisw88 commented 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.

@jdcaacbay-wp
Copy link

Worked great! Thank you very much!

@Sumit112192
Copy link

Thanks Man.I Was getting error that the firebase url is not set to the proper location, even though I updated the google-services.json file. Finally was able to retrieve data from the firebase database.

@ernesto
Copy link

ernesto commented Oct 24, 2021

Omg, I was getting crazy with that issue, thinking I did something wrong, but it was a Firebase problem 🤦

@Necati-Ustun
Copy link

Bro you saved me ! thank you

@nikeru8
Copy link

nikeru8 commented Dec 24, 2021

You save my day . love u

@DHx64
Copy link

DHx64 commented Feb 5, 2023

In my case these files didn't exist

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

So i ran react-native clean, selected all the options and my problem was fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests