Firebase connect - File google-services.json is missing

Hi,
I follow the example to implement Push notification with Capacitor and Firebase
at this link…

i have to put “google-services.json” in android > app folder

At the end,
i click Build but android studio says:

File google-services.json is missing. The Google Services Plugin cannot function without it. 

Searched Location: 
/Users/Pippo/Documents/ionic/pushapp/android/capacitor-cordova-android-plugins/src/nullnull/google-services.json
/Users/Pippo/Documents/ionic/pushapp/android/capacitor-cordova-android-plugins/src/debug/google-services.json
/Users/Pippo/Documents/ionic/pushapp/android/capacitor-cordova-android-plugins/src/nullnullDebug/google-services.json
[...]

Why did it search in
/android/capacitor-cordova-android-plugins/src/

and not in
/android/app/

like the documentation said ?? :frowning:

then if i put the file where it search for… the build says that there’s a package_name conflict… but all the package names are correct

:expressionless:

what am i missing ??
Thanks !!

1 Like

I also facing the same problem now. But found a work around here:

Hope this might help you.

@rajaasyraf thanks a lot,
I ignorantly create a new project… and i really dont know how, but it works :face_with_raised_eyebrow:
Not so encouraging,
but for now i’m proceeding in this way… if I find some news I’ll write here !

I am facing same problem using Capacitor in (ionic-5-full-starter-app pro)

the file (google-services.json) is already in android>app folder but still give same error message.

I get the same message, but the app is working anyway.

Try to follow this tutorial:
https://devdactic.com/push-notifications-ionic-capacitor/

It works for me, even if i get the same error message.