arnesson/cordova-plugin-firebase

Android build failes with Error (Plugin with id 'com.google.gms.google-services' not found.)

phiasco12 opened this issue · 1 comments

Describe the bug
A clear and concise description of what the bug is.

I'm using Phonegap build. i followed exactly all the steps in the docs. included my 'GoogleService-Info.plist' and 'google-services.json' and I also created a Fork of this plugin and replaced src/ios/GoogleService-Info.plist and src/android/google-services.json with my 'GoogleService-Info.plist' and 'google-services.json' files that i downloaded from Firebase.

The build for iOS works fine. I haven't tested the app on a real device yet but the build for iOS works fine.

But the build for Android fails with this error:

* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin with id 'com.google.gms.google-services' not found.

To Reproduce
Steps to reproduce the behavior:

  1. try to use this plugin with Phonegap build.

Using:
PhoneGap (iOS / Android / Windows)
cli-9.0.0 (5.0.1 / 8.0.0 / 7.0.0)

Expected behavior
for the build to succeed.

Screenshots
N/A

Console Logs
N/A

Plugin Version

"cordova-plugin-firebase" at "2.0.5" for android

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Try using my fork : https://github.com/freefiona85/cordova-plugin-firebase - it works on current Firebase version and Phonegap Build. You can see quite a lot of changes and debugs there. some function was disabled temporarily, but many of the functions are still usable.